1
0
Fork 0
mirror of synced 2024-07-09 08:16:34 +12:00

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:
Andrew Kingston 2023-11-24 17:05:31 +00:00
parent bc48661a64
commit 018d42b440

View file

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