Merge pull request #11717 from Budibase/fix/custom-roles-permissions
fix for legacy custom roles
This commit is contained in:
commit
d7f757fb1c
|
@ -107,7 +107,7 @@ export const createLicensingStore = () => {
|
|||
Constants.Features.USER_GROUPS
|
||||
)
|
||||
const backupsEnabled = license.features.includes(
|
||||
Constants.Features.BACKUPS
|
||||
Constants.Features.APP_BACKUPS
|
||||
)
|
||||
const scimEnabled = license.features.includes(Constants.Features.SCIM)
|
||||
const environmentVariablesEnabled = license.features.includes(
|
||||
|
|
|
@ -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