only lock no_access for builder users

This commit is contained in:
Martin McKeaveney 2022-05-13 14:36:11 +01:00
parent f78fffc7c8
commit 2920ed3b99
1 changed files with 1 additions and 3 deletions

View File

@ -6,8 +6,6 @@
export let app
export let user
let devAccess = user?.admin?.global || user?.builder?.global
const NO_ACCESS = "NO_ACCESS"
const dispatch = createEventDispatcher()
@ -17,7 +15,7 @@
.filter(role => role._id !== "PUBLIC")
.map(role => ({ value: role._id, label: role.name }))
if (!devAccess) {
if (!user?.builder?.global) {
options.push({ value: NO_ACCESS, label: "No Access" })
}
let selectedRole = user?.roles?.[app?._id]