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>
Wed, 19 Aug 2020 15:32:43 +0000 (11:32 -0400)
commit9c72591138c0974deb92e70ab9688344d885b224
treeec987c6a38b5260b6a559573fff7572940f74bf2
parentdcc07b5560b97a0190a144aed0caa4b612ae6229
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]