Role fixes
This commit is contained in:
parent
d1d3dd3c37
commit
2dd2dcc2cb
|
@ -126,7 +126,7 @@
|
||||||
user,
|
user,
|
||||||
prodAppId
|
prodAppId
|
||||||
)
|
)
|
||||||
const isAppBuilder = sdk.users.hasAppBuilderPermissions(user, prodAppId)
|
const isAppBuilder = user.builder?.apps?.includes(prodAppId)
|
||||||
let role
|
let role
|
||||||
if (isAdminOrGlobalBuilder) {
|
if (isAdminOrGlobalBuilder) {
|
||||||
role = Constants.Roles.ADMIN
|
role = Constants.Roles.ADMIN
|
||||||
|
|
|
@ -111,7 +111,7 @@
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
return availableApps.map(app => {
|
return availableApps.map(app => {
|
||||||
const prodAppId = apps.getProdAppID(app.appId)
|
const prodAppId = apps.getProdAppID(app.devId)
|
||||||
return {
|
return {
|
||||||
name: app.name,
|
name: app.name,
|
||||||
devId: app.devId,
|
devId: app.devId,
|
||||||
|
|
Loading…
Reference in New Issue