webstaff: add aua to pcrud
authorGalen Charlton <gmc@equinoxinitiative.org>
Thu, 29 Jun 2017 19:15:20 +0000 (15:15 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 29 Jun 2017 19:15:20 +0000 (15:15 -0400)
This has the effect of causing routing list user addresses
to be fleshed, making them available to the printout.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/examples/fm_IDL.xml

index 4d69789..b76bdc6 100644 (file)
@@ -3946,7 +3946,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        </actions>
                </permacrud>
        </class>
-       <class id="aua" controller="open-ils.cstore" oils_obj:fieldmapper="actor::user_address" oils_persist:tablename="actor.usr_address" reporter:label="User Address">
+       <class id="aua" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::user_address" oils_persist:tablename="actor.usr_address" reporter:label="User Address">
                <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_address_id_seq">
                        <field reporter:label="Type" name="address_type"  reporter:datatype="text"/>
                        <field reporter:label="City" name="city"  reporter:datatype="text"/>
@@ -3967,6 +3967,14 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <link field="usr" reltype="has_a" key="id" map="" class="au"/>
                        <link field="replaces" reltype="has_a" key="id" map="" class="aua"/>
                </links>
+               <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+                       <actions>
+                               <create permission="UPDATE_USER"><context link="usr" field="home_ou"/></create>
+                               <retrieve permission="VIEW_USER"><context link="usr" field="home_ou"/></retrieve>
+                               <update permission="UPDATE_USER"><context link="usr" field="home_ou"/></update>
+                               <delete permission="UPDATE_USER"><context link="usr" field="home_ou"/></delete>
+                       </actions>
+               </permacrud>
        </class>
        <class id="aal" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::address_alert" oils_persist:tablename="actor.address_alert" reporter:label="Address Alert">
                <fields oils_persist:primary="id" oils_persist:sequence="actor.address_alert_id_seq">