From a656f29dc4bb772a7e3c23c0a6771fd3cd0f0cc1 Mon Sep 17 00:00:00 2001 From: Siddhant Jena Date: Sat, 3 Jan 2026 12:48:29 +0530 Subject: [PATCH 1/3] fix: explicit asset subdirectory registration in pubspec.yaml --- pubspec.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index bba9397..51171ea 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -92,7 +92,8 @@ flutter: # To add assets to your application, add an assets section, like this: assets: - .env - - ELL-ena-logo/ + - ELL-ena-logo/png/ + - ELL-ena-logo/svg/ # assets: # - images/a_dot_burr.jpeg # - images/a_dot_ham.jpeg From 105ab2e838bb799adf1fc9f9d8472f8c84975202 Mon Sep 17 00:00:00 2001 From: Siddhant Jena Date: Sat, 3 Jan 2026 14:40:49 +0530 Subject: [PATCH 2/3] fix: restrict team RLS policy to members only --- sqls/02_user_auth_policies.sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sqls/02_user_auth_policies.sql b/sqls/02_user_auth_policies.sql index 5fe68cc..61c88c0 100644 --- a/sqls/02_user_auth_policies.sql +++ b/sqls/02_user_auth_policies.sql @@ -22,8 +22,9 @@ ALTER TABLE users ENABLE ROW LEVEL SECURITY; CREATE POLICY "Team members can view their team" ON teams FOR SELECT USING ( - -- Everyone can see all teams for now (we'll restrict this later if needed) - TRUE + id IN ( + SELECT team_id FROM users WHERE id = auth.uid() + ) ); CREATE POLICY "Only admins can update their team" From 47da578aeadd4d85a88d7343c544782da457dfb6 Mon Sep 17 00:00:00 2001 From: Siddhant Jena Date: Sat, 3 Jan 2026 21:03:20 +0530 Subject: [PATCH 3/3] chore: revert out-of-scope asset path changes --- pubspec.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pubspec.yaml b/pubspec.yaml index 51171ea..be55825 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -92,8 +92,7 @@ flutter: # To add assets to your application, add an assets section, like this: assets: - .env - - ELL-ena-logo/png/ - - ELL-ena-logo/svg/ + # assets: # - images/a_dot_burr.jpeg # - images/a_dot_ham.jpeg