Skip to content

Commit

Permalink
fix(clerk-js): Allow members with membership read permissions to see …
Browse files Browse the repository at this point in the history
…memberships count (#3093)

* fix(clerk-js): Allow members with membership read persmissions to see memberships count

* chore(repo): Update Changeset
  • Loading branch information
octoper authored Apr 2, 2024
1 parent ede253e commit d422dae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cuddly-wasps-cheat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/clerk-js': patch
---

Fixes memebership count in `<OrganizationProfile/>` Members page for members with `org:sys_memberships:read` permission
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const OrganizationMembers = withCardStateProvider(() => {
const { membershipRequests, memberships, invitations } = useOrganization({
membershipRequests: isDomainsEnabled || undefined,
invitations: canManageMemberships || undefined,
memberships: canManageMemberships || undefined,
memberships: canReadMemberships || undefined,
});

// @ts-expect-error This property is not typed. It is used by our dashboard in order to render a billing widget.
Expand Down

0 comments on commit d422dae

Please sign in to comment.