mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
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:
parent
9ea62c8e13
commit
7486b6b2f3
@ -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')) {
|
||||
|
Loading…
Reference in New Issue
Block a user