Fixing a caching bug found by cheeks.

This commit is contained in:
mike12345567 2020-12-04 14:01:02 +00:00
parent 623afd6459
commit 1c37299107
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,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