LP#1863386: link ADMIN_CAROUSEL permission to appropriate OU context
authorGalen Charlton <gmc@equinoxinitiative.org>
Thu, 13 Feb 2020 21:49:46 +0000 (16:49 -0500)
committerMike Rylander <mrylander@gmail.com>
Fri, 21 Feb 2020 20:03:40 +0000 (15:03 -0500)
commit813a8e7a1cad47e4ba62844d3daf6209e4716920
treeec465c48ccf9ed0c9f200b54e2882060e2f82aeb
parent024c879e25cc990ab5faf01606e1e85f2dce2825
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>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Jennifer Weston <jennifer.weston@equinoxinitiative.org>
Open-ILS/examples/fm_IDL.xml