LP#1873048: add scoped retrieve perms for booking resource types and resources user/jeffdavis/lp1873048-booking-resource-view-perms
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Thu, 30 Apr 2020 17:36:44 +0000 (10:36 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Thu, 30 Apr 2020 17:36:44 +0000 (10:36 -0700)
commit04cb998a1809b245d7f6c78f99c751b205e1a98a
tree6c6377f2b4b6d3efae679184a58c0da7ac1bbbca
parent7a66de5cc4036d3c153954292176d61b70ebd17f
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>
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]