Allowed editors to see notifications

refs https://github.com/TryGhost/Ghost/issues/9546

- Change introduced due to users with 'editor' role are now allowed to access notifications
This commit is contained in:
Nazar Gargol 2019-04-17 18:22:36 +02:00 committed by Naz Gargol
parent 9ea62c8e13
commit 7486b6b2f3

View File

@ -103,7 +103,7 @@ export default Route.extend(ApplicationRouteMixin, ShortcutsRoute, {
loadServerNotifications(isDelayed) {
if (this.get('session.isAuthenticated')) {
this.get('session.user').then((user) => {
if (!user.get('isAuthorOrContributor') && !user.get('isEditor')) {
if (!user.get('isAuthorOrContributor')) {
this.store.findAll('notification', {reload: true}).then((serverNotifications) => {
serverNotifications.forEach((notification) => {
if (notification.get('top') || notification.get('custom')) {