1
0
Fork 0
mirror of synced 2024-07-03 05:20:32 +12:00

public role in builder backend UI

This commit is contained in:
Martin McKeaveney 2021-07-06 17:19:53 +01:00
parent 68df47e22f
commit aa0906bcad

View file

@ -226,7 +226,7 @@ exports.getAllRoles = async appId => {
dbRole => exports.getExternalRoleID(dbRole._id) === builtinRoleId dbRole => exports.getExternalRoleID(dbRole._id) === builtinRoleId
)[0] )[0]
if (dbBuiltin == null) { if (dbBuiltin == null) {
roles.push(builtinRole) roles.push(builtinRole || builtinRoles.PUBLIC)
} else { } else {
// remove role and all back after combining with the builtin // remove role and all back after combining with the builtin
roles = roles.filter(role => role._id !== dbBuiltin._id) roles = roles.filter(role => role._id !== dbBuiltin._id)