client/auth: hide signup link in top nav if needed

This commit is contained in:
rr- 2016-08-23 21:20:03 +02:00
parent 08c6c2c145
commit 1e9ee0838a
1 changed files with 3 additions and 0 deletions

View File

@ -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');
} }