1
0
Fork 0
mirror of synced 2024-07-11 01:06:04 +12:00

Merge branch 'master' of github.com:budibase/budibase into budi-7710-user-groups-do-not-fully-support-custom-roles-5

This commit is contained in:
Sam Rose 2024-03-05 14:47:56 +00:00
commit 4170213c0d
No known key found for this signature in database

View file

@ -184,7 +184,7 @@ export async function getRole(
return cloneDeep(BUILTIN_ROLES.PUBLIC)
}
// only throw an error if there is no role at all
if (Object.keys(role || {}).length === 0) {
if (!role || Object.keys(role).length === 0) {
throw err
}
}