From 6c4372881a5eeaa3be66857e02a9748763c1393c Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 2 Apr 2009 18:56:00 +0000 Subject: [PATCH] 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 --- Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}; -- 2.11.0