-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Disallow users from viewing full accounts and organizations views #221
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Updates to Preview Branch (restrict-accounts-and-orgs) ↗︎
Tasks are run on every commit but only new migration files are pushed.
View logs for this Workflow Run ↗︎. |
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.
LGTM!
- Tested locally
Users can no longer get all accounts and organizations from the respectively named views. Only an authenticated user can view their own account and only organization members can get their organization.
Two new functions have been added to get accounts and organization by handle, respectively named
get_account(handle)
andget_organization(handle)
.