summaryrefslogtreecommitdiff
path: root/client/js/controllers
diff options
context:
space:
mode:
authorShyam Sunder <sgsunder1@gmail.com>2020-06-22 15:47:57 -0400
committerShyam Sunder <sgsunder1@gmail.com>2020-06-22 15:47:57 -0400
commitb8c5b2719555cfec4768c4eabec4b63720e846f9 (patch)
tree217b176d610fc372219868525fa585cfb4494739 /client/js/controllers
parent018e3df31d961d9c9831da2e70205e61ec326485 (diff)
client/html: hide 'pools' in navbar if user doesn't have privileges
Diffstat (limited to 'client/js/controllers')
-rw-r--r--client/js/controllers/top_navigation_controller.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/js/controllers/top_navigation_controller.js b/client/js/controllers/top_navigation_controller.js
index d9bb276..fbc5399 100644
--- a/client/js/controllers/top_navigation_controller.js
+++ b/client/js/controllers/top_navigation_controller.js
@@ -50,6 +50,9 @@ class TopNavigationController {
if (!api.hasPrivilege("users:list")) {
topNavigation.hide("users");
}
+ if (!api.hasPrivilege("pools:list")) {
+ topNavigation.hide("pools");
+ }
if (api.isLoggedIn()) {
if (!api.hasPrivilege("users:create:any")) {
topNavigation.hide("register");