remove more reference of developer

This commit is contained in:
Peter Clement 2023-08-31 10:59:50 +01:00
parent ddf9e734f4
commit 61e2aad44b
3 changed files with 2 additions and 7 deletions

View File

@ -138,7 +138,7 @@
return Constants.Roles.ADMIN
}
if (user?.builder?.apps.includes(prodAppId)) {
if (user?.builder?.apps?.includes(prodAppId)) {
return Constants.Roles.CREATOR
}

View File

@ -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 =>

View File

@ -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 },
]