Fixed comment list privileges in top navigation
This commit is contained in:
parent
8b217118af
commit
5455106577
2 changed files with 3 additions and 0 deletions
|
@ -40,6 +40,7 @@ App.Presenters.TopNavigationPresenter = function(
|
|||
user: auth.getCurrentUser(),
|
||||
canListUsers: auth.hasPrivilege(auth.privileges.listUsers),
|
||||
canListPosts: auth.hasPrivilege(auth.privileges.listPosts),
|
||||
canListComments: auth.hasPrivilege(auth.privileges.listComments),
|
||||
canListTags: auth.hasPrivilege(auth.privileges.listTags),
|
||||
canUploadPosts: auth.hasPrivilege(auth.privileges.uploadPosts),
|
||||
}));
|
||||
|
|
|
@ -18,7 +18,9 @@
|
|||
title: 'Upload',
|
||||
icon: 'fa-upload'});
|
||||
}
|
||||
}
|
||||
|
||||
if (canListComments) {
|
||||
links.push({
|
||||
target: '#/comments',
|
||||
title: 'Comments',
|
||||
|
|
Loading…
Reference in a new issue