From 2b900d3ce4440174d94bf30e12a51f786297be8a Mon Sep 17 00:00:00 2001 From: Bill Erickson <berick@esilibrary.com> Date: Fri, 10 Aug 2012 14:59:29 -0400 Subject: [PATCH] Enable pcrud access to fiscal year / fiscal calendar Signed-off-by: Bill Erickson <berick@esilibrary.com> Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com> --- Open-ILS/examples/fm_IDL.xml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index 739bf837a5..f7ef3fa084 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -7003,7 +7003,7 @@ SELECT usr, </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"/> @@ -7012,21 +7012,17 @@ SELECT usr, <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"/> @@ -7037,14 +7033,10 @@ SELECT usr, <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> -- 2.11.0