Skip to content

OrganizationSwitcher wrapper#17

Open
vineetbansal wants to merge 2 commits into
kroo:masterfrom
vineetbansal:master
Open

OrganizationSwitcher wrapper#17
vineetbansal wants to merge 2 commits into
kroo:masterfrom
vineetbansal:master

Conversation

@vineetbansal

Copy link
Copy Markdown
Contributor

I was struggling with this for a while - not being able to use something like:

  clerk.protect(
      rx.vstack(
          ....
      ),
      permission="org:app:admin",

which would not let anyone view the protected content (even if they did have the permissions). See identical issue mentioned here.

It turns out that the user needs to switch organizations from their personal account to the organization which has the permissions, and this can only be done on the UI side of things. This wrapper allows the users to do so.

This component is needed to utilize any clerk.protect children by way of role/permission attributes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant