-
Notifications
You must be signed in to change notification settings - Fork 28
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
Reduce Requested Permission for new comers #42
Reduce Requested Permission for new comers #42
Conversation
@0x4007 @gentlementlegen This should reduce requested permission for new comers |
return; | ||
} | ||
|
||
const { data, error: fetchError } = await supabase.from("users").select("userType").eq("id", user.id).single(); |
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.
We do not have such column for users. However their id
matches their GitHub ID. From there, you can fetch the user details and check they level inside the Organization, member
or collborator
etc.
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.
The architecture of the project and how all the pieces communicate is a bit confusing to me. Please how can I get the schema correctly. Thanks
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.
The project architecture looks something similar to this
ubiquibot/.github#11 (comment)
And the Supabase schema can be found at
https://github.com/ubiquity/ubiquibot/tree/development/supabase
Closing this one, already fixed by #48 |
Resolves #41