Add missing search filter group view/admin perm
authorBill Erickson <berick@esilibrary.com>
Thu, 31 May 2012 14:06:17 +0000 (10:06 -0400)
committerDan Scott <dscott@laurentian.ca>
Wed, 1 Aug 2012 21:25:18 +0000 (17:25 -0400)
ADMIN_SEARCH_FILTER_GROUP
VIEW_SEARCH_FILTER_GROUP

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.data.search_filter_group_perms.sql [new file with mode: 0644]

index 94ca8f2..d8d91ba 100644 (file)
@@ -1561,7 +1561,11 @@ INSERT INTO permission.perm_list ( id, code, description ) VALUES
 ( 535, 'VIEW_TRIGGER_EVENT', oils_i18n_gettext( 535,
     'Allows a user to view circ- and hold-related action/trigger events', 'ppl', 'description')),
 ( 536, 'IMPORT_OVERLAY_COPY', oils_i18n_gettext( 536,
-    'Allows a user to overlay copy data in MARC import', 'ppl', 'description'))
+    'Allows a user to overlay copy data in MARC import', 'ppl', 'description')),
+ ( 537, 'ADMIN_SEARCH_FILTER_GROUP', oils_i18n_gettext( 537,
+    'Allows staff to manage search filter groups and entries', 'ppl', 'description' )),
+ ( 538, 'VIEW_SEARCH_FILTER_GROUP', oils_i18n_gettext( 538,
+    'Allows staff to view search filter groups and entries', 'ppl', 'description' ))
 ;
 
 
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.search_filter_group_perms.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.search_filter_group_perms.sql
new file mode 100644 (file)
index 0000000..a0310e9
--- /dev/null
@@ -0,0 +1,29 @@
+BEGIN;
+
+-- SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+-- TODO: verify IDs before merging
+INSERT INTO permission.perm_list ( id, code, description ) 
+    VALUES ( 
+        537, 
+        'ADMIN_SEARCH_FILTER_GROUP',
+        oils_i18n_gettext( 
+            537,
+            'Allows staff to manage search filter groups and entries',
+            'ppl', 
+            'description' 
+        )
+    ),
+    (
+        538, 
+        'VIEW_SEARCH_FILTER_GROUP',
+        oils_i18n_gettext( 
+            538,
+            'Allows staff to view search filter groups and entries',
+            'ppl', 
+            'description' 
+        )
+
+    );
+
+COMMIT;