only lock no_access for builder users

This commit is contained in:
Martin McKeaveney 2022-05-13 14:36:11 +01:00
parent e4766ad388
commit e6586e64a3
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]