From: erickson Date: Thu, 2 Apr 2009 18:56:00 +0000 (+0000) Subject: the key changes depending on which stored proc is called. use whatever key is given... X-Git-Tag: sprint4-merge-nov22~10344 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6c4372881a5eeaa3be66857e02a9748763c1393c;p=working%2FEvergreen.git the key changes depending on which stored proc is called. use whatever key is given to access the value git-svn-id: svn://svn.open-ils.org/ILS/trunk@12765 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm b/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm index fe8f4b3f01..674da9262a 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm @@ -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};