Skip to content
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

Closed
wants to merge 2 commits into from
Closed

Reduce Requested Permission for new comers #42

wants to merge 2 commits into from

Conversation

jordan-ae
Copy link
Contributor

Resolves #41

@jordan-ae
Copy link
Contributor Author

@0x4007 @gentlementlegen This should reduce requested permission for new comers

@gentlementlegen gentlementlegen self-requested a review April 11, 2024 05:51
.vscode/extensions.json Outdated Show resolved Hide resolved
.vscode/settings.json Outdated Show resolved Hide resolved
database.types.ts Outdated Show resolved Hide resolved
package-lock.json Outdated Show resolved Hide resolved
supabase/config.toml Outdated Show resolved Hide resolved
return;
}

const { data, error: fetchError } = await supabase.from("users").select("userType").eq("id", user.id).single();
Copy link
Member

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.

Copy link
Contributor Author

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

Copy link
Member

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

@rndquu
Copy link
Member

rndquu commented May 14, 2024

Closing this one, already fixed by #48

@rndquu rndquu closed this May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lower requested permissions on user registration
3 participants