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

View file

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