default to requesting user on retrieval as well
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 6 Oct 2008 13:47:59 +0000 (13:47 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 6 Oct 2008 13:47:59 +0000 (13:47 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10762 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Actor.pm

index 8d3be81..e34e4b2 100644 (file)
@@ -139,6 +139,7 @@ sub user_settings {
 
     my $e = new_editor(authtoken => $auth);
     return $e->event unless $e->checkauth;
+    $user_id = $e->requestor->id unless defined $user_id;
 
     my $patron = $e->retrieve_actor_user($user_id) or return $e->event;
     if($e->requestor->id != $user_id) {