Skip to content

Commit

Permalink
fix: bypass RLS for admin at init-db.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfiszel committed May 23, 2022
1 parent 9b79cc9 commit dc70dfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init-db.sql
Expand Up @@ -17,7 +17,7 @@ BEGIN
SELECT
FROM pg_catalog.pg_roles
WHERE rolname = 'admin') THEN
CREATE ROLE admin LOGIN PASSWORD 'changeme';
CREATE ROLE admin WITH BYPASSRLS LOGIN PASSWORD 'changeme';
END IF;
END
$do$;

0 comments on commit dc70dfc

Please sign in to comment.