Be explicit when checking if a user is a creator or not when displaying their global role in the user table list and user details page
This commit is contained in:
parent
bc48661a64
commit
018d42b440
|
@ -129,7 +129,7 @@ export function createUsersStore() {
|
|||
return Constants.BudibaseRoles.Admin
|
||||
} else if (sdk.users.isBuilder(user)) {
|
||||
return Constants.BudibaseRoles.Developer
|
||||
} else if (sdk.users.isCreator(user)) {
|
||||
} else if (sdk.users.hasCreatorPermissions(user)) {
|
||||
return Constants.BudibaseRoles.Creator
|
||||
} else {
|
||||
return Constants.BudibaseRoles.AppUser
|
||||
|
|
Loading…
Reference in New Issue