From: Mark Cooper Date: Wed, 25 Sep 2013 17:06:48 +0000 (-0700) Subject: Adding more groups to perm_list X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=86a263e9df9402558d3a035900381f1a7fe96adc;p=working%2FEvergreen.git 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 --- 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 be690783ca..09dfaab6b2 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -1609,7 +1609,17 @@ INSERT INTO permission.perm_list ( id, code, description ) VALUES ( 550, 'SET_CIRC_LONG_OVERDUE', oils_i18n_gettext(550, 'Allows the user to mark a circulation as long-overdue', 'ppl', 'code')), ( 551, 'ADMIN_SERVER_ADDON_FOR_WORKSTATION', oils_i18n_gettext( 551, - 'Allows a user to specify which Server Add-ons get invoked at the current workstation', 'ppl', 'description')) + 'Allows a user to specify which Server Add-ons get invoked at the current workstation', 'ppl', 'description')), + ( 552, 'group_application.user.staff.admin.system_admin', oils_i18n_gettext( 552, + 'Allow a user to add/remove users to/from the "System Administrator" group', 'ppl', 'description' )), + ( 553, 'group_application.user.staff.cat_admin', oils_i18n_gettext( 553, + 'Allow a user to add/remove users to/from the "Cataloging Administrator" group', 'ppl', 'description' )), + ( 554, 'group_application.user.staff.circ_admin', oils_i18n_gettext( 554, + 'Allow a user to add/remove users to/from the "Circulation Administrator" group', 'ppl', 'description' )), + ( 555, 'group_application.user.staff.data_review', oils_i18n_gettext( 555, + 'Allow a user to add/remove users to/from the "Data Review" group', 'ppl', 'description' )), + ( 556, 'group_application.user.staff.volunteers', oils_i18n_gettext( 556, + 'Allow a user to add/remove users to/from the "Volunteers" group', 'ppl', 'description' )) ; 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