[open-ils-commits] r9004 -
trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Mar 13 15:05:40 EDT 2008
Author: erickson
Date: 2008-03-13 14:32:10 -0400 (Thu, 13 Mar 2008)
New Revision: 9004
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm
Log:
replaced old-style checkperm call with allowed()
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm 2008-03-13 16:38:56 UTC (rev 9003)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ/Holds.pm 2008-03-13 18:32:10 UTC (rev 9004)
@@ -113,16 +113,16 @@
push( @events, OpenILS::Event->new('HOLD_EXISTS')) if @$existing;
if( $t eq OILS_HOLD_TYPE_METARECORD )
- { $pevt = $e->event unless $e->checkperm($rid, $porg, 'MR_HOLDS'); }
+ { $pevt = $e->event unless $e->allowed('MR_HOLDS', $porg); }
if( $t eq OILS_HOLD_TYPE_TITLE )
- { $pevt = $e->event unless $e->checkperm($rid, $porg, 'TITLE_HOLDS'); }
+ { $pevt = $e->event unless $e->allowed('TITLE_HOLDS', $porg); }
if( $t eq OILS_HOLD_TYPE_VOLUME )
- { $pevt = $e->event unless $e->checkperm($rid, $porg, 'VOLUME_HOLDS'); }
+ { $pevt = $e->event unless $e->allowed('VOLUME_HOLDS', $porg); }
if( $t eq OILS_HOLD_TYPE_COPY )
- { $pevt = $e->event unless $e->checkperm($rid, $porg, 'COPY_HOLDS'); }
+ { $pevt = $e->event unless $e->allowed('COPY_HOLDS', $porg); }
return $pevt if $pevt;
More information about the open-ils-commits
mailing list