feat: resolved identity filtering with blur

This commit is contained in:
=
2025-11-13 12:52:40 +05:30
parent 648489589b
commit 2e64f37a2d
3 changed files with 43 additions and 14 deletions
@@ -60,8 +60,14 @@ export const identityProjectServiceFactory = ({
});
const totalCount = await identityProjectDAL.getCountByProjectId(projectId, { search });
const filteredMemberships = identityMemberships.filter((el) =>
permission.can(
ProjectPermissionIdentityActions.Read,
subject(ProjectPermissionSub.Identity, { identityId: el.id })
)
);
return { identityMemberships, totalCount };
return { identityMemberships: filteredMemberships, totalCount };
};
const getProjectIdentityByIdentityId = async ({