LP#1795972: Add description for APPLY_WORKSTATION_SETTING permission.
authorChris Sharp <csharp@georgialibraries.org>
Mon, 20 May 2019 19:07:08 +0000 (15:07 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Tue, 30 Jul 2019 14:18:41 +0000 (10:18 -0400)
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Kyle Huckins <khuckins@catalyte.io>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.data.apply_ws_setting_perm_description.sql [new file with mode: 0644]

index 81620b8..67b0471 100644 (file)
@@ -1911,7 +1911,7 @@ INSERT INTO permission.perm_list ( id, code, description ) VALUES
  ( 607, 'EMERGENCY_CLOSING', oils_i18n_gettext( 607,
     'Create and manage Emergency Closings', 'ppl', 'description' )),
  (608, 'APPLY_WORKSTATION_SETTING',
-   oils_i18n_gettext(608, 'APPLY_WORKSTATION_SETTING', 'ppl', 'description')),
+   oils_i18n_gettext(608, 'Allows a user to apply values to workstation settings', 'ppl', 'description')),
  ( 609, 'MANAGE_CUSTOM_PERM_GRP_TREE', oils_i18n_gettext( 609,
     'Allows a user to manage custom permission group lists.', 'ppl', 'description' )),
  ( 610, 'CLEAR_PURCHASE_REQUEST', oils_i18n_gettext(610,
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.apply_ws_setting_perm_description.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.apply_ws_setting_perm_description.sql
new file mode 100644 (file)
index 0000000..401c45f
--- /dev/null
@@ -0,0 +1,12 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+UPDATE permission.perm_list 
+    SET description = oils_i18n_gettext(
+        '608',
+        'Allows a user to apply values to workstation settings',
+        'ppl', 'description')
+    WHERE code = 'APPLY_WORKSTATION_SETTING' and description = 'APPLY_WORKSTATION_SETTING';
+
+COMMIT;