This commit is contained in:
Peter Maquiran
2022-03-29 16:48:24 +01:00
parent 3598d7c851
commit 37ec193f22
9 changed files with 140 additions and 76 deletions
+3 -3
View File
@@ -26,8 +26,8 @@ export class PermissionService {
}
for(let permission of (this.SessionStore.user.UserPermissions || [])){
if (args.includes(permission)){
for(let permission of (this.SessionStore.user.UserPermissions || [])) {
if (args.includes(permission)) {
return true;
}
}
@@ -46,7 +46,7 @@ export class PermissionService {
role = [role]
}
if(!UserRoleIsValid) {return false }
if(!UserRoleIsValid) { return false }
return true