Fix: Correct RLS policies and function security

This commit is contained in:
gpt-engineer-app[bot]
2025-10-06 16:50:00 +00:00
parent 02a9fdad84
commit fae8542c45
5 changed files with 447 additions and 4 deletions

View File

@@ -0,0 +1,15 @@
-- Fix search_path for set_config_value function
CREATE OR REPLACE FUNCTION public.set_config_value(
setting_name text,
setting_value text,
is_local boolean DEFAULT false
)
RETURNS void
LANGUAGE plpgsql
SECURITY DEFINER
SET search_path = public
AS $$
BEGIN
PERFORM set_config(setting_name, setting_value, is_local);
END;
$$;