This commit is contained in:
Peter Maquiran
2022-03-28 21:47:10 +01:00
parent efa0f8df12
commit c35d14d970
7 changed files with 21 additions and 14 deletions
+4 -2
View File
@@ -24,12 +24,14 @@ export class PermissionService {
if(!Array.isArray(args)) {
args = [args]
}
for(let permission of this.SessionStore.user.UserPermissions){
for(let permission of (this.SessionStore.user.UserPermissions || [])){
if (args.includes(permission)){
return true;
}
}
return false;
return true;
}