LP#1873048: add scoped retrieve perms for booking resource types and resources
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Thu, 30 Apr 2020 17:36:44 +0000 (10:36 -0700)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 4 May 2020 17:18:12 +0000 (13:18 -0400)
commit6b310dc1a929e78e77de2fd741c6a5a8526a93f9
tree7c3826f77e6660482323f83296caeba6d04b32af
parent69f9ec751b8c613d1acfecf1fb8e7d7eb6a1607f
LP#1873048: add scoped retrieve perms for booking resource types and resources

In the XUL client, when selecting a resource type, the list was limited
by owning library.  But in the web client, the list would show all
resource types across all libraries.  This commit addresses that
regression by adding a new VIEW_BOOKING_RESOURCE_TYPE permission with
context_field in the IDL.  That way, users only see resource types owned
by org units where they have the permission.

While we're at it, a new VIEW_BOOKING_RESOURCE perm is also added for
resources.

Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/examples/fm_IDL.xml
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.data.permission.booking_resource.sql [new file with mode: 0644]