-
Notifications
You must be signed in to change notification settings - Fork 567
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
Missing row permission for credits table #62
Comments
@Deanstirrat Hey, if you don't mind reseting your database, we actually just generated a supabase migration file that will handle all of the policies for you. If you want to reset it and let it do it for you then you can run this migration on your db You can follow their guide here: https://supabase.com/docs/guides/cli/managing-environments |
@Deanstirrat If your issue is specifically with the service role, also, if you instantiated supabase with the service role key, then it should let you insert that first row. |
More info / screenshots could help |
@Marfuen got mine working. Thanks for your help |
This may be an issue on my end but the supabase setup only allows the service_role to insert rows in the credit table but a new user needs access to create an initial row leap/train-model route. Either that or another supabase client object is needed with service_role permission like is done in the other leap routes.
Please correct me if I'm wrong.
The text was updated successfully, but these errors were encountered: