Making public and basic roles accessible.

This commit is contained in:
mike12345567 2020-12-03 12:28:30 +00:00
parent 19faffff83
commit 623afd6459
1 changed files with 7 additions and 1 deletions

View File

@ -15,7 +15,13 @@ exports.fetch = async function(ctx) {
) )
const customRoles = body.rows.map(row => row.doc) 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] ctx.body = [...staticRoles, ...customRoles]
} }