diff --git a/public_html/js/Presenters/TopNavigationPresenter.js b/public_html/js/Presenters/TopNavigationPresenter.js index 7f2d2d9f..b63af644 100644 --- a/public_html/js/Presenters/TopNavigationPresenter.js +++ b/public_html/js/Presenters/TopNavigationPresenter.js @@ -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), })); diff --git a/public_html/templates/top-navigation.tpl b/public_html/templates/top-navigation.tpl index 33714540..4e7ef2ba 100644 --- a/public_html/templates/top-navigation.tpl +++ b/public_html/templates/top-navigation.tpl @@ -18,7 +18,9 @@ title: 'Upload', icon: 'fa-upload'}); } + } + if (canListComments) { links.push({ target: '#/comments', title: 'Comments',