-- 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 TO webusr, webadm;
-GRANT SELECT, UPDATE ON mod_errorreporter_er_uid_seq TO webusr, webadm;
+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, INSERT ON log_module TO errorreporter;
+GRANT INSERT ON log TO errorreporter;
require_once("db.inc");
require_once("sec/admsecure.inc");
+db_user("errorreporter");
+
html_header("<style type='text/css'>
td.errors-cfg-field {
padding: 1em;
require_once("sec/secure.inc");
require_once("js.inc");
+db_user("errorreporter");
+
PageBlue(_c("error-reporter:Change an error report"), "mod_error-reporter");
if(!$cfgErrors->userHasAccess()) {
$strOldComment = $er->getComment();
// Probably we have to update an error report
-echo "PostSubmit: $postSubmit";
if($getAction == "update" and $postSubmit == _("Change"))
{
if($cfgErrors->userIsAdmin()) {
require_once("mod_error-reporter/init.inc");
require_once("sec/secure.inc");
+db_user("errorreporter");
+
html_header("<style type='text/css'>
td.errors-form-description {
width: 12em;