Skip to content

Commit

Permalink
fix(backend): Expose permissions field for OrganizationMembership (#4310
Browse files Browse the repository at this point in the history
)
  • Loading branch information
dstaley authored Oct 9, 2024
1 parent b0a85b4 commit 358be29
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/eight-kids-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@clerk/backend": patch
---

Expose `permissions` field for `OrganizationMembership` resource
2 changes: 2 additions & 0 deletions packages/backend/src/api/resources/OrganizationMembership.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export class OrganizationMembership {
constructor(
readonly id: string,
readonly role: OrganizationMembershipRole,
readonly permissions: string[],
readonly publicMetadata: OrganizationMembershipPublicMetadata = {},
readonly privateMetadata: OrganizationMembershipPrivateMetadata = {},
readonly createdAt: number,
Expand All @@ -18,6 +19,7 @@ export class OrganizationMembership {
return new OrganizationMembership(
data.id,
data.role,
data.permissions,
data.public_metadata,
data.private_metadata,
data.created_at,
Expand Down

0 comments on commit 358be29

Please sign in to comment.