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
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ export function createUsersStore() {
|
||||||
return Constants.BudibaseRoles.Admin
|
return Constants.BudibaseRoles.Admin
|
||||||
} else if (sdk.users.isBuilder(user)) {
|
} else if (sdk.users.isBuilder(user)) {
|
||||||
return Constants.BudibaseRoles.Developer
|
return Constants.BudibaseRoles.Developer
|
||||||
} else if (sdk.users.isCreator(user)) {
|
} else if (sdk.users.hasCreatorPermissions(user)) {
|
||||||
return Constants.BudibaseRoles.Creator
|
return Constants.BudibaseRoles.Creator
|
||||||
} else {
|
} else {
|
||||||
return Constants.BudibaseRoles.AppUser
|
return Constants.BudibaseRoles.AppUser
|
||||||
|
|
Loading…
Reference in a new issue