client/html: hide 'pools' in navbar if user doesn't have privileges
This commit is contained in:
parent
018e3df31d
commit
b8c5b27195
1 changed files with 3 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue