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.
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.
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.
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