Modernize permission language. user/csharp/modernize_perm_language
authorChris Sharp <csharp@georgialibraries.org>
Mon, 4 Apr 2016 17:31:42 +0000 (13:31 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 4 Apr 2016 17:31:42 +0000 (13:31 -0400)
Since the advent of the Hyperbole and a Half blog post addressing
what it means to be an adult
(http://hyperboleandahalf.blogspot.com/2010/06/this-is-why-ill-never-be-adult.html)
the word "everything" is no longer sufficient to describe the extent
of a given set of objects.  In this case, the EVERYTHING permission, which
is granted to administrative users within Evergreen, is updated to
ALL_THE_THINGS, so we can continue our path to be the most modern
("Next Gen", if you will) integrated library system.

Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.data.modernize_perm_language.sql [new file with mode: 0644]

index eae5327..7288a45 100644 (file)
@@ -475,8 +475,8 @@ SELECT SETVAL('config.billing_type_id_seq'::TEXT, 101);
 
 --006.data.permissions.sql:
 INSERT INTO permission.perm_list ( id, code, description ) VALUES
- ( -1, 'EVERYTHING', oils_i18n_gettext( -1, 
-    'EVERYTHING', 'ppl', 'description' )),
+ ( -1, 'ALL_THE_THINGS', oils_i18n_gettext( -1, 
+    'ALL_THE_THINGS', 'ppl', 'description' )),
  ( 1, 'OPAC_LOGIN', oils_i18n_gettext( 1, 
     'Allow a user to log in to the OPAC', 'ppl', 'description' )),
  ( 2, 'STAFF_LOGIN', oils_i18n_gettext( 2, 
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.modernize_perm_language.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.modernize_perm_language.sql
new file mode 100644 (file)
index 0000000..c835c57
--- /dev/null
@@ -0,0 +1,8 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+UPDATE permission.perm_list SET code = 'ALL_THE_THINGS', description = oils_i18n_gettext( -1,
+    'ALL_THE_THINGS', 'ppl', 'description' ) WHERE id = -1;
+
+COMMIT;