From aee4604fed74348fb000f66c5038fce5860be624 Mon Sep 17 00:00:00 2001 From: Marc Rejohn Castillano Date: Mon, 9 Mar 2026 17:52:55 +0800 Subject: [PATCH] Team color read access --- .../migrations/20260308200000_teams_color_read_access.sql | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 supabase/migrations/20260308200000_teams_color_read_access.sql diff --git a/supabase/migrations/20260308200000_teams_color_read_access.sql b/supabase/migrations/20260308200000_teams_color_read_access.sql new file mode 100644 index 00000000..0a75109b --- /dev/null +++ b/supabase/migrations/20260308200000_teams_color_read_access.sql @@ -0,0 +1,8 @@ +-- Allow authenticated users to read team colors for dashboard display +-- This enables non-admin users to see team colors while keeping full team management admin-only + +CREATE POLICY "Authenticated users can read team colors" ON public.teams + FOR SELECT + USING ( + auth.role() = 'authenticated' + );