[open-ils-commits] r15129 - trunk/Open-ILS/src/perlmods/OpenILS/Application (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Dec 9 16:32:24 EST 2009


Author: erickson
Date: 2009-12-09 16:32:19 -0500 (Wed, 09 Dec 2009)
New Revision: 15129

Modified:
   trunk/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm
Log:
added extra filter optoins for retrieving user payment history

Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm	2009-12-09 21:23:47 UTC (rev 15128)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm	2009-12-09 21:32:19 UTC (rev 15129)
@@ -3633,6 +3633,13 @@
         $query->{$_} = $filters->{$_} if defined $filters->{$_};
     }
 
+    if(defined $filters->{where}) {
+        foreach (keys %{$filters->{where}}) {
+            # don't allow the caller to expand the result set to other users
+            $query->{where}->{$_} = $filters->{where}->{$_} unless $_ eq 'xact'; 
+        }
+    }
+
     my $payment_ids = $e->json_query($query);
     $conn->respond($e->retrieve_money_payment($_->{id})) for @$payment_ids;
 



More information about the open-ils-commits mailing list