1
0
Fork 0
mirror of synced 2024-06-29 19:41:03 +12:00

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

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]