my $e = new_editor("authtoken" => $auth, "xact" => 1);
return $e->die_event unless $e->checkauth;
+ return $e->die_event unless $e->allowed("RECEIVE_SERIAL");
my $user_id = $e->requestor->id;
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0408'); -- gmc
+INSERT INTO config.upgrade_log (version) VALUES ('0409'); -- senator
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
( 482, 'ADMIN_SERIAL_DISTRIBUTION', oils_i18n_gettext( 482,
'ADMIN_SERIAL_DISTRIBUTION', 'ppl', 'description' )),
( 483, 'ADMIN_SERIAL_STREAM', oils_i18n_gettext( 483,
- 'ADMIN_SERIAL_STREAM', 'ppl', 'description' ));
+ 'ADMIN_SERIAL_STREAM', 'ppl', 'description' )),
+ ( 484, 'RECEIVE_SERIAL', oils_i18n_gettext(484, 'Receive serial items', 'ppl', 'description'));
+
SELECT SETVAL('permission.perm_list_id_seq'::TEXT, 1000);
--- /dev/null
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0409'); -- senator
+
+INSERT INTO permission.perm_list (id, code, description) VALUES
+ (484, 'RECEIVE_SERIAL', oils_i18n_gettext(484, 'Receive serial items', 'ppl', 'description'));
+
+COMMIT;