From c35be44ab5d09c7b14734fc2a5789ae34647a5a3 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 6 Oct 2022 13:29:12 -0400 Subject: [PATCH] LP1904036 View Ang Circ Menu Setting/Perm Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- Open-ILS/src/sql/Pg/950.data.seed-values.sql | 2 ++ Open-ILS/src/sql/Pg/upgrade/XXXX.data.angular-patron.sql | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql index c190f811fb..d95fb18ec6 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -1971,6 +1971,8 @@ INSERT INTO permission.perm_list ( id, code, description ) VALUES 'Build and run simple reports', 'ppl', 'description')), ( 639, 'ADMIN_OPENATHENS', oils_i18n_gettext(639, 'Allow a user to administer OpenAthens authentication service', 'ppl', 'description')) + ( 640, 'ACCESS_ANGULAR_CIRC', oils_i18n_gettext(640, + 'Allow a user to access the experimental Angular circulation interfaces', 'ppl', 'description')) ; SELECT SETVAL('permission.perm_list_id_seq'::TEXT, 1000); diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.angular-patron.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.angular-patron.sql index 58abf7c38c..81024998af 100644 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.angular-patron.sql +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.angular-patron.sql @@ -641,6 +641,22 @@ UPDATE config.print_template SET template = $TEMPLATE$ $TEMPLATE$ WHERE name = 'renew'; +INSERT INTO config.org_unit_setting_type (name, grp, datatype, label) +VALUES ( + 'ui.staff.angular_circ.enabled', 'gui', 'bool', + oils_i18n_gettext( + 'ui.staff.angular_circ.enabled', + 'Enable Angular Circulation Menu', + 'cwst', 'label' + ) +); + +INSERT INTO permission.perm_list ( id, code, description ) VALUES + ( 640, 'ACCESS_ANGULAR_CIRC', oils_i18n_gettext(640, + 'Allow a user to access the experimental Angular circulation interfaces', 'ppl', 'description')) +; + + COMMIT; -- 2.11.0