Skip to content

Commit

Permalink
Merge pull request #1008 from Cap-go/fix_perms_exceeded
Browse files Browse the repository at this point in the history
feat: fix perms exceeded
  • Loading branch information
riderx authored Feb 5, 2025
2 parents 48d0238 + 2f4c914 commit 9a7f85b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions supabase/migrations/20250205045706_fix_perms_exceeded.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
REVOKE ALL PRIVILEGES ON FUNCTION set_mau_exceeded_by_org(UUID, boolean) FROM PUBLIC;
REVOKE ALL PRIVILEGES ON FUNCTION set_mau_exceeded_by_org(UUID, boolean) FROM authenticated;
REVOKE ALL PRIVILEGES ON FUNCTION set_mau_exceeded_by_org(UUID, boolean) FROM anon;
GRANT EXECUTE ON FUNCTION set_mau_exceeded_by_org(UUID, boolean) TO service_role;

REVOKE ALL PRIVILEGES ON FUNCTION set_storage_exceeded_by_org(UUID, boolean) FROM PUBLIC;
REVOKE ALL PRIVILEGES ON FUNCTION set_storage_exceeded_by_org(UUID, boolean) FROM authenticated;
REVOKE ALL PRIVILEGES ON FUNCTION set_storage_exceeded_by_org(UUID, boolean) FROM anon;
GRANT EXECUTE ON FUNCTION set_storage_exceeded_by_org(UUID, boolean) TO service_role;

REVOKE ALL PRIVILEGES ON FUNCTION set_bandwidth_exceeded_by_org(UUID, boolean) FROM PUBLIC;
REVOKE ALL PRIVILEGES ON FUNCTION set_bandwidth_exceeded_by_org(UUID, boolean) FROM authenticated;
REVOKE ALL PRIVILEGES ON FUNCTION set_bandwidth_exceeded_by_org(UUID, boolean) FROM anon;
GRANT EXECUTE ON FUNCTION set_bandwidth_exceeded_by_org(UUID, boolean) TO service_role;

0 comments on commit 9a7f85b

Please sign in to comment.