//public static AdministratorWithPermissions Current //{ // get // { // var instance = new PermissionsManager(RequestBody.CurrentAdministratorName); // return instance.Permissions; // } //} public static AdministratorWithPermissions GetPermissions(string administratorName) { var instance = new PermissionsManager(administratorName); return(instance.Permissions); }
public AdministratorWithPermissions(string userName) { UserName = userName; _rolesKey = PermissionsManager.GetRolesKey(userName); _permissionListKey = PermissionsManager.GetPermissionListKey(userName); }