Adding more groups to perm_list user/mcooper/perm_list_group_system_admin
authorMark Cooper <markchristophercooper@gmail.com>
Wed, 25 Sep 2013 17:06:48 +0000 (10:06 -0700)
committerMark Cooper <markchristophercooper@gmail.com>
Wed, 25 Sep 2013 17:06:48 +0000 (10:06 -0700)
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 <markchristophercooper@gmail.com>
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.data.perm_list_group_system_admin.sql [new file with mode: 0644]

index be69078..09dfaab 100644 (file)
@@ -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 (file)
index 0000000..7d92cb1
--- /dev/null
@@ -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