Merge branch 'feature/chat-v0' of bitbucket.org:equilibriumito/gabinete-digital into feature/chat-v0

This commit is contained in:
tiago.kayaya
2022-03-29 16:55:35 +01:00
22 changed files with 240 additions and 123 deletions
+5 -3
View File
@@ -23,8 +23,10 @@ export class PermissionService {
if(!Array.isArray(args)) {
args = [args]
}
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;
}
}
@@ -42,7 +44,7 @@ export class PermissionService {
role = [role]
}
if(!UserRoleIsValid) {return false }
if(!UserRoleIsValid) { return false }
return true