</links>
</class>
- <class id="acqfc" controller="open-ils.cstore" oils_obj:fieldmapper="acq::fiscal_calendar" oils_persist:tablename="acq.fiscal_calendar" reporter:label="Fiscal Calendar">
+ <class id="acqfc" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::fiscal_calendar" oils_persist:tablename="acq.fiscal_calendar" reporter:label="Fiscal Calendar">
<fields oils_persist:primary="id" oils_persist:sequence="acq.fiscal_calendar_id_seq">
<field reporter:label="Fiscal Calendar ID" name="id" reporter:datatype="id" reporter:selector='name'/>
<field reporter:label="Fiscal Calendar Name" name="name" reporter:datatype="text"/>
<links>
<link field="years" reltype="has_many" map="" key="calendar" class="acqfy"/>
</links>
- <!--
- For now, we don't have pcrud as one of the controllers, so the permacrud section is moot.
- But here's what it should look like if we ever do use pcrud.
- -->
<permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
<actions>
<create permission="ADMIN_ACQ_FISCAL_YEAR" global_required="true"/>
- <retrieve permission="ADMIN_ACQ_FISCAL_YEAR" global_required="true"/>
+ <retrieve permission="STAFF_LOGIN" global_required="true"/>
<update permission="ADMIN_ACQ_FISCAL_YEAR" global_required="true"/>
<delete permission="ADMIN_ACQ_FISCAL_YEAR" global_required="true"/>
</actions>
</permacrud>
</class>
- <class id="acqfy" controller="open-ils.cstore" oils_obj:fieldmapper="acq::fiscal_year" oils_persist:tablename="acq.fiscal_year" reporter:label="Fiscal Year">
+ <class id="acqfy" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::fiscal_year" oils_persist:tablename="acq.fiscal_year" reporter:label="Fiscal Year">
<fields oils_persist:primary="id" oils_persist:sequence="acq.fiscal_year_id_seq">
<field reporter:label="Fiscal Year ID" name="id" reporter:datatype="id" reporter:selector='year'/>
<field reporter:label="Calendar" name="calendar" reporter:datatype="link"/>
<links>
<link field="calendar" reltype="has_a" key="id" map="" class="acqfc"/>
</links>
- <!--
- For now, we don't have pcrud as one of the controllers, so the permacrud section is moot.
- But here's what it should look like if we ever do use pcrud.
- -->
<permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
<actions>
<create permission="ADMIN_ACQ_FISCAL_YEAR" global_required="true"/>
- <retrieve permission="ADMIN_ACQ_FISCAL_YEAR" global_required="true"/>
+ <retrieve permission="STAFF_LOGIN" global_required="true"/>
<update permission="ADMIN_ACQ_FISCAL_YEAR" global_required="true"/>
<delete permission="ADMIN_ACQ_FISCAL_YEAR" global_required="true"/>
</actions>