mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-20 04:20:25 +00:00
feat: resolved identity filtering with blur
This commit is contained in:
@@ -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 ({
|
||||
|
||||
Reference in New Issue
Block a user