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