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