From d0359a740800c81050b5e49f2c8b9b469485374b 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 --- Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 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..8c5c084f5a 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