]> git.evergreen-ils.org Git - evergreen/pines.git/commit
LP#2007880: fix open-ils.actor.ou_setting.ancestor_default
authorGalen Charlton <gmc@equinoxOLI.org>
Mon, 20 Feb 2023 23:35:10 +0000 (18:35 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 27 Mar 2023 15:26:32 +0000 (11:26 -0400)
commita673b3f3ebd9d45a50981d428a47680b379fc307
tree32f2f410e4933fc737e1fdbbdb15e9e54efe3345
parent5c2e48db65d84278b14f6d854f0813176b79fd6c
LP#2007880: fix open-ils.actor.ou_setting.ancestor_default

This patch fixes a regression introduced by bug 2006749 that
prevented open-ils.actor.ou_setting.ancestor_default from retrieving
the value of a library setting that does not have a view permission
associated with it. It also fixes a similar issue with
open-ils.actor.org_unit.settings.history.retrieve.

To test
-------
[1] Use srfsh to retrieve the value of a library setting
    that does not have a view permission. E.g.,

    request open-ils.actor open-ils.actor.ou_setting.ancestor_default 4, "circ.grace.extend"

    Note that an error is returned.

[2] Apply the patch and repeat step 1. This time, the value of
    the setting should be returned.
[3] Verify that viewing the edit history of a setting in the
    Library Settings admin page works as expected.

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm