From b8c5b2719555cfec4768c4eabec4b63720e846f9 Mon Sep 17 00:00:00 2001 From: Shyam Sunder Date: Mon, 22 Jun 2020 15:47:57 -0400 Subject: [PATCH] client/html: hide 'pools' in navbar if user doesn't have privileges --- client/js/controllers/top_navigation_controller.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/js/controllers/top_navigation_controller.js b/client/js/controllers/top_navigation_controller.js index d9bb276d..fbc5399d 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");