From 116e09af9577a4230998b21c1a9493d6516b0c2d Mon Sep 17 00:00:00 2001 From: Sodbileg Gansukh Date: Thu, 1 Jun 2023 15:23:31 +0800 Subject: [PATCH] Show the mobile nav only when logged in closes https://github.com/TryGhost/Team/issues/3134 - the mobile nav was showing for 404 pages when not logged in - this adds an additional check, so that the nav is only shown when user is logged in, not only when the user is not contributor --- ghost/admin/app/templates/application.hbs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ghost/admin/app/templates/application.hbs b/ghost/admin/app/templates/application.hbs index bea64d7c6e..54aab3b064 100644 --- a/ghost/admin/app/templates/application.hbs +++ b/ghost/admin/app/templates/application.hbs @@ -30,9 +30,11 @@ - {{#unless this.session.user.isContributor}} - - {{/unless}} + {{#if this.session.user}} + {{#unless this.session.user.isContributor}} + + {{/unless}} + {{/if}} {{#if this.settings.accentColor}}