Fixed comment list privileges in top navigation

This commit is contained in:
Marcin Kurczewski 2014-10-22 18:44:57 +02:00
parent 8b217118af
commit 5455106577
2 changed files with 3 additions and 0 deletions

View file

@ -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),
}));

View file

@ -18,7 +18,9 @@
title: 'Upload',
icon: 'fa-upload'});
}
}
if (canListComments) {
links.push({
target: '#/comments',
title: 'Comments',