1
0
Fork 0
mirror of synced 2024-06-23 08:30:31 +12:00

Fix bug with checking user access

This commit is contained in:
Andrew Kingston 2020-12-04 14:01:10 +00:00
parent af24967c88
commit 883b3761d5

View file

@ -108,7 +108,7 @@ class AccessController {
let roleIds = this.userHierarchies[userRoleId]
if (!roleIds) {
roleIds = await exports.getUserRoleHierarchy(this.appId, userRoleId)
this.userHierarchies[userRoleId] = userRoleId
this.userHierarchies[userRoleId] = roleIds
}
return roleIds.indexOf(tryingRoleId) !== -1