Merge branch 'rbac-ui' of https://github.com/Budibase/budibase into rbac-ui
This commit is contained in:
commit
2c8696b8f0
|
@ -75,7 +75,7 @@ exports.BUILTIN_PERMISSIONS = {
|
||||||
_id: exports.BUILTIN_PERMISSION_IDS.PUBLIC,
|
_id: exports.BUILTIN_PERMISSION_IDS.PUBLIC,
|
||||||
name: "Public",
|
name: "Public",
|
||||||
permissions: [
|
permissions: [
|
||||||
new Permission(PermissionTypes.WEBHOOK, PermissionLevels.EXECUTE)
|
new Permission(PermissionTypes.WEBHOOK, PermissionLevels.EXECUTE),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
READ_ONLY: {
|
READ_ONLY: {
|
||||||
|
|
|
@ -86,7 +86,9 @@ exports.lowerBuiltinRoleID = (roleId1, roleId2) => {
|
||||||
if (!roleId2) {
|
if (!roleId2) {
|
||||||
return roleId1
|
return roleId1
|
||||||
}
|
}
|
||||||
return builtinRoleToNumber(roleId1) > builtinRoleToNumber(roleId2) ? roleId2 : roleId1
|
return builtinRoleToNumber(roleId1) > builtinRoleToNumber(roleId2)
|
||||||
|
? roleId2
|
||||||
|
: roleId1
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue