-
Notifications
You must be signed in to change notification settings - Fork 31
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
Limit ability to add organization in Nova console (and invite-only envs) #1223
base: dev
Are you sure you want to change the base?
Conversation
we can probably surface the "vetted" attribute through some newly created endpoint that is called on organizationIndex page if USER_INVITE_ONLY? or in checkRegisteredUser in auth/magic.js, dispatch something to store that says this user cannot create orgs |
lib/console/auth/auth.ex
Outdated
case get_user_by_id(user_id) do | ||
%{super: is_super} -> get_user_data_map(user_id, email, is_super) | ||
_ -> get_user_data_map(user_id, email) | ||
%{super: is_super} -> get_user_data_map(user_id, email, vetted, is_super) |
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.
can we default superuser to vetted
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.
added!
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.
one comment, lgtm
No description provided.