Skip to content

Commit

Permalink
fix permission for readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
fey committed Mar 7, 2024
1 parent 8d0e05e commit 14ac611
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/setup_user.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
-- REVOKE ALL ON schema public FROM public;
REVOKE ALL ON schema public FROM public;
CREATE ROLE student WITH LOGIN PASSWORD 'student'
NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION VALID UNTIL 'infinity';
GRANT USAGE ON SCHEMA public TO student;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO student;
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO student;

0 comments on commit 14ac611

Please sign in to comment.