Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 469
fix(clerk-js): Hide Members page of OrgProfile if user doesn't have any member related permissions#2138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
fix(clerk-js): Hide Members page of OrgProfile if user doesn't have any member related permissions #2138
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@clerk/clerk-js': patch | ||
| --- | ||
| Hide members page of <OrganizationProfile/> if user doesn't have any membership related permissions. |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -129,7 +129,12 @@ export const OrganizationProfileRoutes = (props: PropsOfComponent<typeof Profile | ||||||
| </Gate> | ||||||
| </Route> | ||||||
| <Route index> | ||||||
| <OrganizationMembers /> | ||||||
| <Gate | ||||||
| some={[{ permission: 'org:sys_memberships:read' }, { permission: 'org:sys_memberships:manage' }]} | ||||||
| redirectTo='./organization-settings' | ||||||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
| ||||||
| > | ||||||
| <OrganizationMembers /> | ||||||
| </Gate> | ||||||
Comment on lines
+132
to
+137
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 😍 | ||||||
| </Route> | ||||||
| </Switch> | ||||||
| </Route> | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏