Skip to content

Commit

Permalink
limit-org-creation: showing unlimited state, readme improvements (#20)
Browse files Browse the repository at this point in the history
* Not displaying blank if user membership is not limited

* Adding dashboard link to README
  • Loading branch information
izaaklauer authored Dec 18, 2024
1 parent 28cd5be commit b5f1c54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion examples/limit-org-creation/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# limit-org-creation

An example on how to use our org creation limitations to control which users can create new organizations
An example on how to use our org creation limitations to control which users can create new organizations.

These limits can be configured in [Organization Settings](https://dashboard.clerk.com/last-active?path=organizations-settings) -> Limit Creation in the Clerk Dashboard.

## Includes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default function Dashboard() {
{user?.createOrganizationEnabled ? "allowed" : "not allowed"}
</strong>{" "}
to create organizations. Limit is set to{" "}
<strong>{user?.createOrganizationsLimit}</strong>
<strong>{user?.createOrganizationsLimit || "unlimited"}</strong>
</p>
<div className="mt-8">
<p>There are a few ways to test this functionality:</p>
Expand Down

0 comments on commit b5f1c54

Please sign in to comment.