readibility update
This commit is contained in:
parent
70c71c13bf
commit
1997cb5d6b
1 changed files with 6 additions and 8 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue