1
0
Fork 0
mirror of synced 2024-07-01 20:41:03 +12:00

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

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