1
0
Fork 0
mirror of synced 2024-07-06 15:00:49 +12:00

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,