LP#1863386: link ADMIN_CAROUSEL permission to appropriate OU context user/gmcharlt/lp1863386_carousel_perm_fix
authorGalen Charlton <gmc@equinoxinitiative.org>
Thu, 13 Feb 2020 21:49:46 +0000 (16:49 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 14 Feb 2020 22:42:50 +0000 (17:42 -0500)
commit906f7d59aeb7f9a2bae540d872aba0ee65fe9dc0
tree53dcd5b05be8fa5f5e6247b0491ae6332682ab37
parent851572686b9d3c827bca282449d66299cc929e2e
LP#1863386: link ADMIN_CAROUSEL permission to appropriate OU context

This patch restricts prcrud retrieval and modification of templates
to users who have ADMIN_CAROUSEL in the relevant carousel owner OU
rather than requiring global_required.

To test
-------
[1] Apply the patch.
[2] Ensure that a user with ADMIN_CAROUSEL privileges at a depth
    lower than "Consortium" can only view and edit carousel
    definitions at OUs applicable to their working libraries.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/examples/fm_IDL.xml