From 2bb8b48283ae32e685c0a3061f8482cf0708b048 Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Thu, 9 Feb 2023 13:31:26 -0500 Subject: [PATCH] LP2006749: Fix second call to ou_ancestor_setting_perm_check in AppUtils.pm Signed-off-by: Chris Sharp Signed-off-by: Jason Stephenson Signed-off-by: Galen Charlton --- Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm index 441d0c0da9..24b7fdb43b 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm @@ -1356,11 +1356,10 @@ sub ou_ancestor_setting_log { $coust = $e->retrieve_config_org_unit_setting_type([ $name, {flesh => 1, flesh_fields => {coust => ['view_perm']}} ]); - my $orgs = $self->get_org_ancestors($orgid); my $qorg = $self->ou_ancestor_setting_perm_check( - $orgs, - $coust, + $orgid, + $coust->view_perm->code, $e, $auth ); -- 2.11.0