diff options
| author | Shyam Sunder <sgsunder1@gmail.com> | 2020-06-22 15:47:57 -0400 |
|---|---|---|
| committer | Shyam Sunder <sgsunder1@gmail.com> | 2020-06-22 15:47:57 -0400 |
| commit | b8c5b2719555cfec4768c4eabec4b63720e846f9 (patch) | |
| tree | 217b176d610fc372219868525fa585cfb4494739 /client/js/controllers | |
| parent | 018e3df31d961d9c9831da2e70205e61ec326485 (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.js | 3 |
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"); |