mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-26 18:27:00 -05:00
Fix Realtime broadcast insert permissions
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
-- Grant INSERT permission on realtime.messages for broadcast functionality
|
||||||
|
-- This allows SECURITY DEFINER trigger functions to insert broadcast messages
|
||||||
|
|
||||||
|
GRANT INSERT ON realtime.messages TO postgres;
|
||||||
|
GRANT INSERT ON realtime.messages TO service_role;
|
||||||
|
|
||||||
|
-- Also ensure SELECT is granted for completeness
|
||||||
|
GRANT SELECT ON realtime.messages TO postgres;
|
||||||
|
GRANT SELECT ON realtime.messages TO service_role;
|
||||||
Reference in New Issue
Block a user