Fixing issue with users that don't have admin structure.

This commit is contained in:
mike12345567 2021-05-21 17:19:13 +01:00
parent 59de40c4ef
commit 0838a45efc
1 changed files with 2 additions and 2 deletions

View File

@ -36,8 +36,8 @@
.map(user => ({
...user,
group: ["All users"],
developmentAccess: user.builder.global,
adminAccess: user.admin.global,
developmentAccess: !!user.builder?.global,
adminAccess: !!user.admin?.global,
}))
let createUserModal