Remove ES6 optional chaining from server package
This commit is contained in:
parent
2317e87436
commit
7ecb593e0f
|
@ -168,7 +168,7 @@ exports.fetchAppPackage = async function (ctx) {
|
||||||
let screens = await getScreens(db)
|
let screens = await getScreens(db)
|
||||||
|
|
||||||
// Only filter screens if the user is not a builder
|
// Only filter screens if the user is not a builder
|
||||||
if (!ctx.user.builder?.global) {
|
if (!(ctx.user.builder && ctx.user.builder.global)) {
|
||||||
const userRoleId = getUserRoleId(ctx)
|
const userRoleId = getUserRoleId(ctx)
|
||||||
const accessController = new AccessController(ctx.params.appId)
|
const accessController = new AccessController(ctx.params.appId)
|
||||||
screens = await accessController.checkScreensAccess(screens, userRoleId)
|
screens = await accessController.checkScreensAccess(screens, userRoleId)
|
||||||
|
|
Loading…
Reference in New Issue