the key changes depending on which stored proc is called. use whatever key is given...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 2 Apr 2009 18:56:00 +0000 (18:56 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 2 Apr 2009 18:56:00 +0000 (18:56 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12765 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index fe8f4b3..674da92 100644 (file)
@@ -1233,7 +1233,7 @@ sub user_has_work_perm_at {
     $func = $func.'_all' if $$options{descendants};
 
     my $orgs = $e->json_query({from => [$func, $e->requestor->id, $perm]});
-    $orgs = [map { $_->{'permission.usr_has_perm_at'} } @$orgs];
+    $orgs = [map { $_->{ (keys %$_)[0] } } @$orgs];
 
     return $orgs unless $$options{objects};