mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 18:19:43 +00:00
Align prod schema and deploy tooling
This commit is contained in:
1 parent
d2db86ec7f
commit
7e2e723880
105 files changed
+19014
-131
No files matched your search
@@ -1,4 +1,3 @@
|
||||
|
||||
-- Create a function that admins with gift_premium permission can use to gift premium
|
||||
-- This bypasses RLS issues by using SECURITY DEFINER and checking permissions internally
|
||||
CREATE OR REPLACE FUNCTION admin_gift_premium(
|
||||
@@ -52,7 +51,5 @@ BEGIN
|
||||
RETURN v_subscription_id;
|
||||
END;
|
||||
$$;
|
||||
|
||||
-- Grant execute permission to authenticated users (the function checks permissions internally)
|
||||
GRANT EXECUTE ON FUNCTION admin_gift_premium(UUID, TIMESTAMPTZ) TO authenticated;
|
||||
;
|
||||
Reference in new issue
Block a user