Merge pull request #11754 from Budibase/fix/creator-in-portal-bug

Role fixes
This commit is contained in:
Michael Drury 2023-09-13 15:06:31 +01:00 committed by GitHub
commit 2d5775fa54
2 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@
user,
prodAppId
)
const isAppBuilder = sdk.users.hasAppBuilderPermissions(user, prodAppId)
const isAppBuilder = user.builder?.apps?.includes(prodAppId)
let role
if (isAdminOrGlobalBuilder) {
role = Constants.Roles.ADMIN

View File

@ -111,7 +111,7 @@
})
}
return availableApps.map(app => {
const prodAppId = apps.getProdAppID(app.appId)
const prodAppId = apps.getProdAppID(app.devId)
return {
name: app.name,
devId: app.devId,