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

Merge pull request #3134 from Budibase/no-access-role-remove-public

Remove public role selection
This commit is contained in:
Rory Powell 2021-10-25 10:43:47 +01:00 committed by GitHub
commit 29da2637bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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]