Forbid empty DNS names
[regano.git] / db_permissions.sql
blob6240e85b17423934394289a4fa11c9108bb6fb90
1 -- Regano database permissions
2 --
3 -- Uses PostgreSQL extensions.
4 --
5 --  Regano is a domain registration system for OpenNIC TLDs written in
6 --  Perl.  This file is part of Regano.
7 --
8 --  Regano may be distributed under the same terms as Perl itself.  Of
9 --  particular importance, note that while regano is distributed in the
10 --  hope that it will be useful, there is NO WARRANTY OF ANY KIND
11 --  WHATSOEVER WHETHER EXPLICIT OR IMPLIED.
13 -- The type definitions in db_types.sql must already be installed.
14 -- The table definitions in db_tables.sql must already be installed.
16 GRANT USAGE ON SCHEMA regano_api TO "regano-www";
17 GRANT EXECUTE ON ALL FUNCTIONS IN SCHEMA regano_api TO "regano-www";
19 GRANT USAGE ON SCHEMA regano TO "regano-www";
21 GRANT SELECT ON TABLE regano.bailiwicks         TO "regano-www";
22 GRANT SELECT ON TABLE regano.domains            TO "regano-www";
23 GRANT SELECT ON TABLE regano.domain_records     TO "regano-www";