Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ flutter:
# To add assets to your application, add an assets section, like this:
assets:
- .env
- ELL-ena-logo/

# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
Expand Down
5 changes: 3 additions & 2 deletions sqls/02_user_auth_policies.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down