LP#2006749: Fix call to ou_ancestor_setting_perm_check in AppUtils.pm user/dyrcona/lp2006749-fix-apputils-perm-check
authorJason Stephenson <jason@sigio.com>
Thu, 9 Feb 2023 16:22:58 +0000 (11:22 -0500)
committerJason Stephenson <jason@sigio.com>
Thu, 9 Feb 2023 16:53:17 +0000 (11:53 -0500)
commit989a923ed1f1229a05d9734f98b89fdab13e0a4d
treec078a0aa303f550079102217bac3d904143f10ca
parentf5c8a9715d0648f946c8549e4874822af24f3880
LP#2006749: Fix call to ou_ancestor_setting_perm_check in AppUtils.pm

The $self and $e arguments are missing when the ou_ancestor_setting
subroutine calls ou_ancestor_setting_perm_check in AppUtils.

The $coust argument also need to be $coust->view_perm->code for the
allowed check in ou_ancestor_setting_perm_check.

This commit corrects the call to ou_ancestor_setting_perm_check.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm