Making public and basic roles accessible.
This commit is contained in:
parent
65302e1dd9
commit
5d9175b981
|
@ -15,7 +15,13 @@ exports.fetch = async function(ctx) {
|
|||
)
|
||||
const customRoles = body.rows.map(row => row.doc)
|
||||
|
||||
const staticRoles = [BUILTIN_ROLES.ADMIN, BUILTIN_ROLES.POWER]
|
||||
// exclude internal roles like builder
|
||||
const staticRoles = [
|
||||
BUILTIN_ROLES.ADMIN,
|
||||
BUILTIN_ROLES.POWER,
|
||||
BUILTIN_ROLES.BASIC,
|
||||
BUILTIN_ROLES.PUBLIC,
|
||||
]
|
||||
ctx.body = [...staticRoles, ...customRoles]
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue