From f7716f93c8ebb875deb90ce3248e91d579b2e641 Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 13 Apr 2010 00:53:31 +0000 Subject: [PATCH] open-ils.actor.user.retrieve.parts -- default to logged in user when no id is provided git-svn-id: svn://svn.open-ils.org/ILS/trunk@16221 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Actor.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm b/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm index b71f409ca8..dca0ca9b66 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm @@ -2989,6 +2989,7 @@ sub user_retrieve_parts { 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'); } -- 2.11.0