Fixing a caching bug found by cheeks.
This commit is contained in:
parent
623afd6459
commit
1c37299107
|
@ -148,7 +148,7 @@ class AccessController {
|
||||||
let roleIds = this.userHierarchies[userRoleId]
|
let roleIds = this.userHierarchies[userRoleId]
|
||||||
if (!roleIds) {
|
if (!roleIds) {
|
||||||
roleIds = await exports.getUserRoleHierarchy(this.appId, userRoleId)
|
roleIds = await exports.getUserRoleHierarchy(this.appId, userRoleId)
|
||||||
this.userHierarchies[userRoleId] = userRoleId
|
this.userHierarchies[userRoleId] = roleIds
|
||||||
}
|
}
|
||||||
|
|
||||||
return roleIds.indexOf(tryingRoleId) !== -1
|
return roleIds.indexOf(tryingRoleId) !== -1
|
||||||
|
|
Loading…
Reference in New Issue