Files
meet-hub/supabase/migrations/20251231000001_public_site_settings.sql
dwindown 84de0a7efe Fix platform_settings table name and RLS policy
- Update migration to use correct table name (platform_settings, not site_settings)
- Fix WebinarRecording.tsx to query platform_settings table
- Fix Bootcamp.tsx to query platform_settings table
- This allows authenticated users to access brand_accent_color for theming

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-01 01:15:09 +07:00

11 lines
307 B
SQL

-- Make platform_settings publicly accessible for accent color
-- All users (authenticated) can read brand settings
DROP POLICY IF EXISTS "platform_settings_public_select" ON platform_settings;
CREATE POLICY "platform_settings_public_select"
ON platform_settings
FOR SELECT
TO authenticated
USING (true);