readibility update
This commit is contained in:
parent
70c71c13bf
commit
1997cb5d6b
|
@ -368,14 +368,12 @@
|
|||
},
|
||||
]
|
||||
|
||||
if (creationRoleType !== Constants.BudibaseRoles.Admin) {
|
||||
if (creationAccessType === Constants.Roles.CREATOR) {
|
||||
const notCreatingAdmin = creationRoleType !== Constants.BudibaseRoles.Admin
|
||||
const isCreator = creationAccessType === Constants.Roles.CREATOR
|
||||
if (notCreatingAdmin && isCreator) {
|
||||
payload[0].builder.apps = [prodAppId]
|
||||
} else {
|
||||
payload[0].apps = {
|
||||
[prodAppId]: creationAccessType,
|
||||
}
|
||||
}
|
||||
} else if (notCreatingAdmin && !isCreator) {
|
||||
payload[0].apps = { [prodAppId]: creationAccessType }
|
||||
}
|
||||
|
||||
let userInviteResponse
|
||||
|
|
Loading…
Reference in New Issue