fix for legacy custom roles
This commit is contained in:
parent
10e3cccb9f
commit
ab5753273d
|
@ -92,7 +92,7 @@ export async function getResourcePerms(
|
|||
// update the various roleIds in the resource permissions
|
||||
for (let role of rolesList) {
|
||||
const rolePerms = allowsExplicitPerm
|
||||
? roles.checkForRoleResourceArray(role.permissions, resourceId)
|
||||
? roles.checkForRoleResourceArray(role.permissions || {}, resourceId)
|
||||
: {}
|
||||
if (rolePerms[resourceId]?.indexOf(level) > -1) {
|
||||
permissions[level] = {
|
||||
|
|
Loading…
Reference in New Issue