only lock no_access for builder users
This commit is contained in:
parent
e4766ad388
commit
e6586e64a3
|
@ -6,8 +6,6 @@
|
||||||
export let app
|
export let app
|
||||||
export let user
|
export let user
|
||||||
|
|
||||||
let devAccess = user?.admin?.global || user?.builder?.global
|
|
||||||
|
|
||||||
const NO_ACCESS = "NO_ACCESS"
|
const NO_ACCESS = "NO_ACCESS"
|
||||||
|
|
||||||
const dispatch = createEventDispatcher()
|
const dispatch = createEventDispatcher()
|
||||||
|
@ -17,7 +15,7 @@
|
||||||
.filter(role => role._id !== "PUBLIC")
|
.filter(role => role._id !== "PUBLIC")
|
||||||
.map(role => ({ value: role._id, label: role.name }))
|
.map(role => ({ value: role._id, label: role.name }))
|
||||||
|
|
||||||
if (!devAccess) {
|
if (!user?.builder?.global) {
|
||||||
options.push({ value: NO_ACCESS, label: "No Access" })
|
options.push({ value: NO_ACCESS, label: "No Access" })
|
||||||
}
|
}
|
||||||
let selectedRole = user?.roles?.[app?._id]
|
let selectedRole = user?.roles?.[app?._id]
|
||||||
|
|
Loading…
Reference in New Issue