Skip to content

Commit b67139b

Browse files
committed
fix(access-assignment): prevent null attribute for super admin
1 parent f173652 commit b67139b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/modules/iam-user/src/lib/models/user-access-assignment.mapper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ export function mapRoleAssociationsToAccessAssignments(
3030
export function mapRoleAssociationToAccessAssignmentVm(
3131
association: RoleAssociation
3232
): UserAccessAssignmentVm {
33-
const scopeEntity = getScopeEntity(association.attributes);
34-
const scopeInstance = getScopeInstance(association.attributes);
33+
const scopeEntity = getScopeEntity(association.attributes || []);
34+
const scopeInstance = getScopeInstance(association.attributes || []);
3535
const scopeType = getScopeTypeFromEntity(scopeEntity);
3636

3737
const isSystem = isSystemAssignment(association);

0 commit comments

Comments
 (0)