Merge pull request #3134 from Budibase/no-access-role-remove-public
Remove public role selection
This commit is contained in:
commit
07270e041c
|
@ -11,7 +11,9 @@
|
||||||
const dispatch = createEventDispatcher()
|
const dispatch = createEventDispatcher()
|
||||||
|
|
||||||
const roles = app.roles
|
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" })
|
options.push({ value: NO_ACCESS, label: "No Access" })
|
||||||
let selectedRole = user?.roles?.[app?._id]
|
let selectedRole = user?.roles?.[app?._id]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue