| | |
| | |
| |
|
| | |
| | ALTER TABLE public.recognition_logs ENABLE ROW LEVEL SECURITY; |
| |
|
| | |
| | DROP POLICY IF EXISTS "Anyone can log recognitions" ON public.recognition_logs; |
| | DROP POLICY IF EXISTS "Enable insert for all users" ON public.recognition_logs; |
| | DROP POLICY IF EXISTS "Enable read for all users" ON public.recognition_logs; |
| |
|
| | |
| | |
| | CREATE POLICY "Enable insert for all users" |
| | ON public.recognition_logs FOR INSERT |
| | WITH CHECK (true); |
| |
|
| | |
| | CREATE POLICY "Enable read for all users" |
| | ON public.recognition_logs FOR SELECT |
| | USING (true); |
| |
|
| | |
| | SELECT tablename, policyname, cmd, diff_key |
| | FROM pg_policies |
| | WHERE tablename = 'recognition_logs'; |
| |
|