Vandelay match set permission additions collab/berick/vandelay-missing-perms-etc
authorBill Erickson <berick@esilibrary.com>
Wed, 21 Mar 2012 20:33:39 +0000 (16:33 -0400)
committerBill Erickson <berick@esilibrary.com>
Wed, 21 Mar 2012 20:33:39 +0000 (16:33 -0400)
Allow retrieve access for match points with the VIEW_IMPORT_MATCH_SET
permission (in addition to ADMIN_IMPORT_MATCH_SET).

Adds 2 new permissions to the database:

ADMIN_IMPORT_MATCH_SET
VIEW_IMPORT_MATCH_SET

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/examples/fm_IDL.xml
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.data.vandelay_perms_etc.sql [new file with mode: 0644]

index 1c92c2e..08a4239 100644 (file)
@@ -544,7 +544,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
                        <actions>
                                <create permission="ADMIN_IMPORT_MATCH_SET" context_field="owner"/>
-                               <retrieve permission="ADMIN_IMPORT_MATCH_SET" context_field="owner"/>
+                               <retrieve permission="ADMIN_IMPORT_MATCH_SET VIEW_IMPORT_MATCH_SET" context_field="owner"/>
                                <update permission="ADMIN_IMPORT_MATCH_SET" context_field="owner"/>
                                <delete permission="ADMIN_IMPORT_MATCH_SET" context_field="owner"/>
                        </actions>
@@ -575,7 +575,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                                <create permission="ADMIN_IMPORT_MATCH_SET">
                     <context link="match_set" field="owner"/>
                                </create>
-                               <retrieve permission="ADMIN_IMPORT_MATCH_SET">
+                               <retrieve permission="ADMIN_IMPORT_MATCH_SET VIEW_IMPORT_MATCH_SET">
                     <context link="match_set" field="owner"/>
                                </retrieve>
                                <update permission="ADMIN_IMPORT_MATCH_SET">
index cec8061..2511d0a 100644 (file)
@@ -1533,7 +1533,11 @@ INSERT INTO permission.perm_list ( id, code, description ) VALUES
  ( 521, 'IMPORT_ACQ_LINEITEM_BIB_RECORD_UPLOAD', oils_i18n_gettext( 521,
     'Allows a user to create new bibs directly from an ACQ MARC file upload', 'ppl', 'description' )),
  ( 522, 'IMPORT_AUTHORITY_MARC', oils_i18n_gettext( 522,
-    'Allows a user to create new authority records', 'ppl', 'description' ));
+    'Allows a user to create new authority records', 'ppl', 'description' )),
+ ( 523, 'ADMIN_IMPORT_MATCH_SET', oils_i18n_gettext( 523,
+    'Allows a user to create/retrieve/update/delete vandelay match sets', 'ppl', 'description' )),
+ ( 524, 'VIEW_IMPORT_MATCH_SET', oils_i18n_gettext( 524,
+    'Allows a user to view vandelay match sets', 'ppl', 'description' ));
 
 
 SELECT SETVAL('permission.perm_list_id_seq'::TEXT, 1000);
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.vandelay_perms_etc.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.vandelay_perms_etc.sql
new file mode 100644 (file)
index 0000000..eddbc28
--- /dev/null
@@ -0,0 +1,27 @@
+-- Evergreen DB patch 0684.schema.acq-vandelay-integration.sql
+BEGIN;
+
+-- seed data --
+
+INSERT INTO permission.perm_list ( id, code, description ) 
+    VALUES ( 
+        523, 
+        'ADMIN_IMPORT_MATCH_SET',
+        oils_i18n_gettext( 
+            523,
+            'Allows a user to create/retrieve/update/delete vandelay match sets',
+            'ppl', 
+            'description' 
+        )
+    ), ( 
+        524, 
+        'VIEW_IMPORT_MATCH_SET',
+        oils_i18n_gettext( 
+            524,
+            'Allows a user to view vandelay match sets',
+            'ppl', 
+            'description' 
+        )
+    );
+
+COMMIT;