Add missing ADMIN_ORG_UNIT_CUSTOM_TREE permission
authorBill Erickson <berick@esilibrary.com>
Thu, 12 Apr 2012 19:34:02 +0000 (15:34 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Sat, 28 Apr 2012 19:05:04 +0000 (15:05 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Michael Peters <mrpeters@library.in.gov>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/0705.data.custom-org-tree-perms.sql [new file with mode: 0644]

index 86311e1..1760787 100644 (file)
@@ -87,7 +87,7 @@ CREATE TRIGGER no_overlapping_deps
     BEFORE INSERT OR UPDATE ON config.db_patch_dependencies
     FOR EACH ROW EXECUTE PROCEDURE evergreen.array_overlap_check ('deprecates');
 
-INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0704', :eg_version); -- dbs
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0705', :eg_version); -- dbs
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
index d53ae14..e71a359 100644 (file)
@@ -1543,7 +1543,9 @@ INSERT INTO permission.perm_list ( id, code, description ) VALUES
  ( 526, 'UPDATE_PATRON_STAT_CAT_ENTRY_DEFAULT', oils_i18n_gettext( 526, 
     'User may reset a default entry in a patron statistical category', 'ppl', 'description' )),
  ( 527, 'DELETE_PATRON_STAT_CAT_ENTRY_DEFAULT', oils_i18n_gettext( 527, 
-    'User may unset a default entry in a patron statistical category', 'ppl', 'description' ));
+    'User may unset a default entry in a patron statistical category', 'ppl', 'description' )),
+ ( 528, 'ADMIN_ORG_UNIT_CUSTOM_TREE', oils_i18n_gettext( 528, 
+    'User may update custom org unit trees', 'ppl', 'description' ));
 
 SELECT SETVAL('permission.perm_list_id_seq'::TEXT, 1000);
 
diff --git a/Open-ILS/src/sql/Pg/upgrade/0705.data.custom-org-tree-perms.sql b/Open-ILS/src/sql/Pg/upgrade/0705.data.custom-org-tree-perms.sql
new file mode 100644 (file)
index 0000000..3d0e0b9
--- /dev/null
@@ -0,0 +1,20 @@
+-- Evergreen DB patch 0705.data.custom-org-tree-perms.sql
+--
+BEGIN;
+
+-- check whether patch can be applied
+SELECT evergreen.upgrade_deps_block_check('0705', :eg_version);
+
+INSERT INTO permission.perm_list (id, code, description) 
+    VALUES ( 
+        528, 
+        'ADMIN_ORG_UNIT_CUSTOM_TREE', 
+        oils_i18n_gettext( 
+            528, 
+            'User may update custom org unit trees', 
+            'ppl', 
+            'description' 
+        )
+    );
+
+COMMIT;