X-Git-Url: https://git.rohieb.name/iserv-mod-error-reporter.git/blobdiff_plain/f6faefbedad2de5c5d4aa915f5a5f180039c055b..e9f2b961b77ab316f83a603e6e3fed7f402217cd:/sql/mod_error-reporter.sql?ds=sidebyside

diff --git a/sql/mod_error-reporter.sql b/sql/mod_error-reporter.sql
index 0e3ea56..c9d2e13 100644
--- a/sql/mod_error-reporter.sql
+++ b/sql/mod_error-reporter.sql
@@ -25,6 +25,8 @@
 -- THE SOFTWARE.
 --
 
+CREATE USER errorreporter;
+
 CREATE TABLE mod_errorreporter (
   er_uid          SERIAL                      NOT NULL PRIMARY KEY,
   er_date         TIMESTAMP WITHOUT TIME ZONE NOT NULL,
@@ -40,5 +42,11 @@ CREATE TABLE mod_errorreporter (
   er_hidden       BOOL
 );
 
-GRANT SELECT, INSERT, UPDATE, DELETE ON mod_errorreporter, mod_errorreporter_er_uid_seq TO webadm;
-GRANT SELECT, INSERT, UPDATE, DELETE ON mod_errorreporter, mod_errorreporter_er_uid_seq TO webusr;
+GRANT SELECT, INSERT, UPDATE, DELETE ON mod_errorreporter TO errorreporter;
+GRANT SELECT, UPDATE ON mod_errorreporter_er_uid_seq TO errorreporter;
+GRANT SELECT ON users TO errorreporter;
+GRANT SELECT ON groups TO errorreporter;
+GRANT SELECT, INSERT ON log_module TO errorreporter;
+GRANT INSERT ON log TO errorreporter;
+GRANT SELECT ON privileges_assign TO errorreporter;
+
