feat(extensions): introduce RBAC extension (#2900)

This commit is contained in:
Anthony Lapenna
2019-05-24 18:04:58 +12:00
committed by GitHub
parent 27a0188949
commit 8057aa45c4
196 changed files with 3321 additions and 1316 deletions

View File

@@ -33,8 +33,7 @@ function ($q, UserService, TeamService, Notifications, Authentication, ResourceC
}
function initComponent() {
var userDetails = Authentication.getUserDetails();
var isAdmin = userDetails.role === 1 ? true: false;
var isAdmin = Authentication.isAdmin();
ctrl.isAdmin = isAdmin;
if (isAdmin) {