Browse Source
Merge pull request #3134 from Budibase/no-access-role-remove-public
Remove public role selection
pull/3160/head
Rory Powell
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
packages/builder/src/pages/builder/portal/manage/users/_components/UpdateRolesModal.svelte
|
|
|
@ -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] |
|
|
|
|
|
|
|
|