From: Chris Sharp Date: Mon, 4 Apr 2016 17:31:42 +0000 (-0400) Subject: Modernize permission language. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fcsharp%2Fmodernize_perm_language;p=working%2FEvergreen.git Modernize permission language. 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. --- 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 eae5327d26..7288a45b0f 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -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 index 0000000000..c835c57076 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.modernize_perm_language.sql @@ -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;