Merge pull request #11754 from Budibase/fix/creator-in-portal-bug
Role fixes
This commit is contained in:
commit
2d5775fa54
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue