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(),
|
user: auth.getCurrentUser(),
|
||||||
canListUsers: auth.hasPrivilege(auth.privileges.listUsers),
|
canListUsers: auth.hasPrivilege(auth.privileges.listUsers),
|
||||||
canListPosts: auth.hasPrivilege(auth.privileges.listPosts),
|
canListPosts: auth.hasPrivilege(auth.privileges.listPosts),
|
||||||
|
canListComments: auth.hasPrivilege(auth.privileges.listComments),
|
||||||
canListTags: auth.hasPrivilege(auth.privileges.listTags),
|
canListTags: auth.hasPrivilege(auth.privileges.listTags),
|
||||||
canUploadPosts: auth.hasPrivilege(auth.privileges.uploadPosts),
|
canUploadPosts: auth.hasPrivilege(auth.privileges.uploadPosts),
|
||||||
}));
|
}));
|
||||||
|
|
|
@ -18,7 +18,9 @@
|
||||||
title: 'Upload',
|
title: 'Upload',
|
||||||
icon: 'fa-upload'});
|
icon: 'fa-upload'});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (canListComments) {
|
||||||
links.push({
|
links.push({
|
||||||
target: '#/comments',
|
target: '#/comments',
|
||||||
title: 'Comments',
|
title: 'Comments',
|
||||||
|
|
Loading…
Reference in a new issue