mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-26 08:51:09 -05:00
Fix: Correct RLS policies and function security
This commit is contained in:
@@ -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;
|
||||
$$;
|
||||
Reference in New Issue
Block a user