1
0
Fork 0
mirror of synced 2024-06-30 12:00:31 +12:00

Remove public role selection

This commit is contained in:
Rory Powell 2021-10-25 10:15:04 +01:00
parent 1c034752d4
commit 4982759fb2

View file

@ -11,7 +11,9 @@
const dispatch = createEventDispatcher()
const roles = app.roles
let options = roles.map(role => ({ value: role._id, label: role.name }))
let options = roles
.filter(role => role._id !== "PUBLIC")
.map(role => ({ value: role._id, label: role.name }))
options.push({ value: NO_ACCESS, label: "No Access" })
let selectedRole = user?.roles?.[app?._id]