From 3231863dc2d2f4ebfdccd9e27d31afa01cfb6b00 Mon Sep 17 00:00:00 2001 From: Peter Zimon Date: Wed, 24 Aug 2022 14:22:45 +0200 Subject: [PATCH] Added link on UI for Editors to staff page refs. https://github.com/TryGhost/Team/issues/1839 - there was no way for an Editor through the Admin UI to be able to invite staff users --- ghost/admin/app/components/gh-nav-menu/footer.hbs | 3 +++ ghost/admin/app/templates/settings/staff/index.hbs | 6 ++++-- ghost/admin/app/templates/settings/staff/user-loading.hbs | 6 ++++-- ghost/admin/app/templates/settings/staff/user.hbs | 6 ++++-- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/ghost/admin/app/components/gh-nav-menu/footer.hbs b/ghost/admin/app/components/gh-nav-menu/footer.hbs index b45124530c..610192e581 100644 --- a/ghost/admin/app/components/gh-nav-menu/footer.hbs +++ b/ghost/admin/app/components/gh-nav-menu/footer.hbs @@ -93,6 +93,9 @@ {{#if (gh-user-can-admin this.session.user)}} {{svg-jar "settings"}} {{/if}} + {{#if this.session.user.isEditor}} + {{svg-jar "settings"}} + {{/if}}
{{svg-jar "sun"}}
diff --git a/ghost/admin/app/templates/settings/staff/index.hbs b/ghost/admin/app/templates/settings/staff/index.hbs index 59ab2c8a91..d76e206a83 100644 --- a/ghost/admin/app/templates/settings/staff/index.hbs +++ b/ghost/admin/app/templates/settings/staff/index.hbs @@ -1,8 +1,10 @@

- Settings - {{svg-jar "arrow-right"}} + {{#unless this.session.user.isEditor}} + Settings + {{svg-jar "arrow-right"}} + {{/unless}} Staff

{{!-- Do not show Invite user button to authors --}} diff --git a/ghost/admin/app/templates/settings/staff/user-loading.hbs b/ghost/admin/app/templates/settings/staff/user-loading.hbs index 03583fb7dd..63e193f293 100644 --- a/ghost/admin/app/templates/settings/staff/user-loading.hbs +++ b/ghost/admin/app/templates/settings/staff/user-loading.hbs @@ -5,8 +5,10 @@

Your profile

{{else}}

- Settings - {{svg-jar "arrow-right"}} + {{#unless this.session.user.isEditor}} + Settings + {{svg-jar "arrow-right"}} + {{/unless}} Staff {{svg-jar "arrow-right"}} {{this.user.name}} diff --git a/ghost/admin/app/templates/settings/staff/user.hbs b/ghost/admin/app/templates/settings/staff/user.hbs index 89c83057ef..fe84d63901 100644 --- a/ghost/admin/app/templates/settings/staff/user.hbs +++ b/ghost/admin/app/templates/settings/staff/user.hbs @@ -5,8 +5,10 @@

Your profile

{{else}}

- Settings - {{svg-jar "arrow-right"}} + {{#unless this.session.user.isEditor}} + Settings + {{svg-jar "arrow-right"}} + {{/unless}} Staff {{svg-jar "arrow-right"}} {{this.user.name}}