KEYCLOAK-2426

No visible link for users with 'manage-users' role
This commit is contained in:
Stian Thorgersen 2016-02-08 19:47:02 +01:00
parent 5f41215e27
commit d8779a3d01

View file

@ -25,19 +25,19 @@ module.controller('GlobalCtrl', function($scope, $http, Auth, Current, $location
},
get viewRealm() {
return getAccess('view-realm') || this.manageRealm;
return getAccess('view-realm') || getAccess('manage-realm') || this.manageRealm;
},
get viewClients() {
return getAccess('view-clients') || this.manageClients;
return getAccess('view-clients') || getAccess('manage-clients') || this.manageClients;
},
get viewUsers() {
return getAccess('view-users') || this.manageClients;
return getAccess('view-users') || getAccess('manage-users') || this.manageClients;
},
get viewEvents() {
return getAccess('view-events') || this.manageClients;
return getAccess('view-events') || getAccess('manage-events') || this.manageClients;
},
get manageRealm() {