mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
improve envarionment
This commit is contained in:
@@ -18,7 +18,14 @@ export class PermissionService {
|
||||
args = [args]
|
||||
}
|
||||
|
||||
return args.includes(this.SessionStore.user.Profile)
|
||||
|
||||
for(const arg of args) {
|
||||
if(arg == this.SessionStore.user.Profile) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
userPermission(args) {
|
||||
|
||||
Reference in New Issue
Block a user