From 5455106577abab088e48bd844f409e0f23e33469 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Wed, 22 Oct 2014 18:44:57 +0200 Subject: [PATCH] Fixed comment list privileges in top navigation --- public_html/js/Presenters/TopNavigationPresenter.js | 1 + public_html/templates/top-navigation.tpl | 2 ++ 2 files changed, 3 insertions(+) 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',