[open-ils-commits] r16221 - trunk/Open-ILS/src/perlmods/OpenILS/Application (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Apr 12 20:53:33 EDT 2010
Author: erickson
Date: 2010-04-12 20:53:31 -0400 (Mon, 12 Apr 2010)
New Revision: 16221
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm
Log:
open-ils.actor.user.retrieve.parts -- default to logged in user when no id is provided
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm 2010-04-12 21:40:54 UTC (rev 16220)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm 2010-04-13 00:53:31 UTC (rev 16221)
@@ -2989,6 +2989,7 @@
my( $self, $client, $auth, $user_id, $fields ) = @_;
my $e = new_editor(authtoken => $auth);
return $e->event unless $e->checkauth;
+ $user_id ||= $e->requestor->id;
if( $e->requestor->id != $user_id ) {
return $e->event unless $e->allowed('VIEW_USER');
}
More information about the open-ils-commits
mailing list