From a58a18d77fae346988ae46992622356a45d3d93b Mon Sep 17 00:00:00 2001 From: Mark Cooper Date: Wed, 25 Sep 2013 10:06:48 -0700 Subject: [PATCH] LP#1230557 Adding more groups to perm_list By default some of the perm groups do not have their application_perm in the perm_list. This adds them. Signed-off-by: Mark Cooper Signed-off-by: Ben Shum Conflicts: Open-ILS/src/sql/Pg/950.data.seed-values.sql --- Open-ILS/src/sql/Pg/950.data.seed-values.sql | 12 +++++++++++- .../XXXX.data.perm_list_group_system_admin.sql | 18 ++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 Open-ILS/src/sql/Pg/upgrade/XXXX.data.perm_list_group_system_admin.sql 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 9e0e3b1451..e50d0bd026 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -1595,7 +1595,17 @@ INSERT INTO permission.perm_list ( id, code, description ) VALUES ( 553, 'UPDATE_ORG_UNIT_SETTING.circ.min_item_price', oils_i18n_gettext( 553, 'UPDATE_ORG_UNIT_SETTING.circ.min_item_price', 'ppl', 'description' )), ( 554, 'UPDATE_ORG_UNIT_SETTING.circ.max_item_price', oils_i18n_gettext( 554, - 'UPDATE_ORG_UNIT_SETTING.circ.max_item_price', 'ppl', 'description' )) + 'UPDATE_ORG_UNIT_SETTING.circ.max_item_price', 'ppl', 'description' )), + ( 555, 'group_application.user.staff.admin.system_admin', oils_i18n_gettext( 555, + 'Allow a user to add/remove users to/from the "System Administrator" group', 'ppl', 'description' )), + ( 556, 'group_application.user.staff.cat_admin', oils_i18n_gettext( 556, + 'Allow a user to add/remove users to/from the "Cataloging Administrator" group', 'ppl', 'description' )), + ( 557, 'group_application.user.staff.circ_admin', oils_i18n_gettext( 557, + 'Allow a user to add/remove users to/from the "Circulation Administrator" group', 'ppl', 'description' )), + ( 558, 'group_application.user.staff.data_review', oils_i18n_gettext( 558, + 'Allow a user to add/remove users to/from the "Data Review" group', 'ppl', 'description' )), + ( 559, 'group_application.user.staff.volunteers', oils_i18n_gettext( 559, + 'Allow a user to add/remove users to/from the "Volunteers" group', 'ppl', 'description' )) ; SELECT SETVAL('permission.perm_list_id_seq'::TEXT, 1000); diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.perm_list_group_system_admin.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.perm_list_group_system_admin.sql new file mode 100644 index 0000000000..7d92cb1aa1 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.perm_list_group_system_admin.sql @@ -0,0 +1,18 @@ +BEGIN; + +-- SELECT evergreen.upgrade_deps_block_check('', :eg_version); + +INSERT INTO permission.perm_list ( code, description ) VALUES + ( 'group_application.user.staff.admin.system_admin', oils_i18n_gettext( '', + 'Allow a user to add/remove users to/from the "System Administrator" group', 'ppl', 'description' )), + ( 'group_application.user.staff.cat_admin', oils_i18n_gettext( '', + 'Allow a user to add/remove users to/from the "Cataloging Administrator" group', 'ppl', 'description' )), + ( 'group_application.user.staff.circ_admin', oils_i18n_gettext( '', + 'Allow a user to add/remove users to/from the "Circulation Administrator" group', 'ppl', 'description' )), + ( 'group_application.user.staff.data_review', oils_i18n_gettext( '', + 'Allow a user to add/remove users to/from the "Data Review" group', 'ppl', 'description' )), + ( 'group_application.user.staff.volunteers', oils_i18n_gettext( '', + 'Allow a user to add/remove users to/from the "Volunteers" group', 'ppl', 'description' )) +; + +COMMIT; \ No newline at end of file -- 2.43.2