From 6dbc271751f7bcc25c657c4c924cc1f20b399a8f Mon Sep 17 00:00:00 2001 From: Rory Powell Date: Mon, 25 Oct 2021 10:15:04 +0100 Subject: [PATCH] Remove public role selection --- .../portal/manage/users/_components/UpdateRolesModal.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/pages/builder/portal/manage/users/_components/UpdateRolesModal.svelte b/packages/builder/src/pages/builder/portal/manage/users/_components/UpdateRolesModal.svelte index bd0f6b5b30..afa4c84f0e 100644 --- a/packages/builder/src/pages/builder/portal/manage/users/_components/UpdateRolesModal.svelte +++ b/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]