-- THE SOFTWARE.
--
+CREATE USER errorreporter;
+
CREATE TABLE mod_errorreporter (
er_uid SERIAL NOT NULL PRIMARY KEY,
er_date TIMESTAMP WITHOUT TIME ZONE NOT NULL,
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;
+