client/html: hide 'pools' in navbar if user doesn't have privileges

This commit is contained in:
Shyam Sunder 2020-06-22 15:47:57 -04:00
parent 018e3df31d
commit b8c5b27195

View file

@ -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");