Skip to content

Commit 3b4e53d

Browse files
committed
Fix 'SECURITY DEFINER' on migration
1 parent a9059be commit 3b4e53d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sql/2025-09-08_cloud-org-permission-checks.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
-- Function for cloud to check org permissions.
22
CREATE FUNCTION public.user_has_org_permission(user_id UUID, org_user_id UUID, permission permission)
33
RETURNS BOOLEAN
4+
-- Allow access to share's tables within the function.
5+
SECURITY DEFINER
46
STABLE
57
PARALLEL SAFE
68
AS $$

0 commit comments

Comments
 (0)