remove more reference of developer
This commit is contained in:
parent
ddf9e734f4
commit
61e2aad44b
|
@ -138,7 +138,7 @@
|
|||
return Constants.Roles.ADMIN
|
||||
}
|
||||
|
||||
if (user?.builder?.apps.includes(prodAppId)) {
|
||||
if (user?.builder?.apps?.includes(prodAppId)) {
|
||||
return Constants.Roles.CREATOR
|
||||
}
|
||||
|
||||
|
|
|
@ -121,11 +121,7 @@ export function createUsersStore() {
|
|||
}
|
||||
|
||||
const getUserRole = user =>
|
||||
sdk.users.isAdmin(user)
|
||||
? "admin"
|
||||
: sdk.users.isBuilder(user)
|
||||
? "developer"
|
||||
: "appUser"
|
||||
sdk.users.isAdminOrGlobalBuilder(user) ? "admin" : "appUser"
|
||||
|
||||
const refreshUsage =
|
||||
fn =>
|
||||
|
|
|
@ -24,7 +24,6 @@ export const BudibaseRoles = {
|
|||
|
||||
export const BudibaseRoleOptions = [
|
||||
{ label: "Member", value: BudibaseRoles.AppUser },
|
||||
{ label: "Developer", value: BudibaseRoles.Developer },
|
||||
{ label: "Admin", value: BudibaseRoles.Admin },
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in New Issue