[open-ils-commits] r18733 - branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application (senator)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Nov 15 10:05:43 EST 2010
Author: senator
Date: 2010-11-15 10:05:41 -0500 (Mon, 15 Nov 2010)
New Revision: 18733
Modified:
branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Booking.pm
Log:
Backport r17447 from trunk: fix wrong-headed permissions tests in booking
This should have been backported to rel_1_6 immediately. :-(
Modified: branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Booking.pm
===================================================================
--- branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Booking.pm 2010-11-15 05:24:38 UTC (rev 18732)
+++ branches/rel_1_6/Open-ILS/src/perlmods/OpenILS/Application/Booking.pm 2010-11-15 15:05:41 UTC (rev 18733)
@@ -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