link ADMIN_CAROUSEL permission to appropriate OU context user/gmcharlt/carousel_permissions_update
authorGalen Charlton <gmc@equinoxinitiative.org>
Thu, 13 Feb 2020 21:49:46 +0000 (16:49 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 13 Feb 2020 21:49:46 +0000 (16:49 -0500)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/examples/fm_IDL.xml

index 56bc477..f4b13a1 100644 (file)
@@ -13048,10 +13048,10 @@ SELECT  usr,
                </links>
                <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
                        <actions>
-                               <create permission="ADMIN_CAROUSEL" global_required="true"/>
-                               <retrieve/>
-                               <update permission="ADMIN_CAROUSEL" global_required="true"/>
-                               <delete permission="ADMIN_CAROUSEL" global_required="true"/>
+                               <create permission="ADMIN_CAROUSEL" context_field="owner"/>
+                               <retrieve permission="ADMIN_CAROUSEL" context_field="owner"/>
+                               <update permission="ADMIN_CAROUSEL" context_field="owner"/>
+                               <delete permission="ADMIN_CAROUSEL" context_field="owner"/>
                        </actions>
                </permacrud>
        </class>
@@ -13074,10 +13074,18 @@ SELECT  usr,
                </links>
                <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
                        <actions>
-                               <create permission="ADMIN_CAROUSEL" global_required="true"/>
-                               <retrieve/>
-                               <update permission="ADMIN_CAROUSEL" global_required="true"/>
-                               <delete permission="ADMIN_CAROUSEL" global_required="true"/>
+                               <create permission="ADMIN_CAROUSEL">
+                  <context link="carousel" field="owner" />
+                </create>
+                               <retrieve permission="ADMIN_CAROUSEL">
+                  <context link="carousel" field="owner" />
+                </retrieve>
+                               <update permission="ADMIN_CAROUSEL">
+                  <context link="carousel" field="owner" />
+                </update>
+                               <delete permission="ADMIN_CAROUSEL">
+                  <context link="carousel" field="owner" />
+                </delete>
                        </actions>
                </permacrud>
        </class>