1
0
Fork 0
mirror of synced 2024-09-08 21:51:58 +12:00

readibility update

This commit is contained in:
Peter Clement 2023-09-05 12:28:03 +01:00
parent 70c71c13bf
commit 1997cb5d6b

View file

@ -368,14 +368,12 @@
}, },
] ]
if (creationRoleType !== Constants.BudibaseRoles.Admin) { const notCreatingAdmin = creationRoleType !== Constants.BudibaseRoles.Admin
if (creationAccessType === Constants.Roles.CREATOR) { const isCreator = creationAccessType === Constants.Roles.CREATOR
if (notCreatingAdmin && isCreator) {
payload[0].builder.apps = [prodAppId] payload[0].builder.apps = [prodAppId]
} else { } else if (notCreatingAdmin && !isCreator) {
payload[0].apps = { payload[0].apps = { [prodAppId]: creationAccessType }
[prodAppId]: creationAccessType,
}
}
} }
let userInviteResponse let userInviteResponse