client/auth: hide signup link in top nav if needed
This commit is contained in:
parent
08c6c2c145
commit
1e9ee0838a
1 changed files with 3 additions and 0 deletions
|
@ -50,6 +50,9 @@ class TopNavigationController {
|
|||
topNavigation.hide('register');
|
||||
topNavigation.hide('login');
|
||||
} else {
|
||||
if (!api.hasPrivilege('users:create')) {
|
||||
topNavigation.hide('register');
|
||||
}
|
||||
topNavigation.hide('account');
|
||||
topNavigation.hide('logout');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue