[open-ils-commits] r17448 - branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application (senator)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Sep 2 14:46:32 EDT 2010


Author: senator
Date: 2010-09-02 14:46:28 -0400 (Thu, 02 Sep 2010)
New Revision: 17448

Modified:
   branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Booking.pm
Log:
Backport r17447: kill CAPTURE_RESERVATION


Modified: branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Booking.pm
===================================================================
--- branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Booking.pm	2010-09-02 18:45:28 UTC (rev 17447)
+++ branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Booking.pm	2010-09-02 18:46:28 UTC (rev 17448)
@@ -791,7 +791,7 @@
 
     my $e = new_editor("authtoken" => $auth);
     return $e->die_event unless $e->checkauth;
-    return $e->die_event unless $e->allowed("CAPTURE_RESERVATION");
+    return $e->die_event unless $e->allowed("COPY_CHECKIN");
 
     my $dt_parser = new DateTime::Format::ISO8601;
     my $now = now DateTime; # sic
@@ -940,7 +940,7 @@
 
     my $e = new_editor(authtoken => $auth);
     return $e->die_event unless $e->checkauth;
-    return $e->die_event unless $e->allowed("CAPTURE_RESERVATION");
+    return $e->die_event unless $e->allowed("COPY_CHECKIN");
 
     my $uncaptured = get_uncaptured_bresv_for_brsrc(
         $e, {"barcode" => $barcode}
@@ -987,7 +987,7 @@
 
     my $e = new_editor("xact" => 1, "authtoken" => $auth);
     return $e->die_event unless $e->checkauth;
-    return $e->die_event unless $e->allowed('CAPTURE_RESERVATION');
+    return $e->die_event unless $e->allowed("COPY_CHECKIN");
     my $here = $e->requestor->ws_ou;
 
     my $reservation = $e->retrieve_booking_reservation([



More information about the open-ils-commits mailing list