diff --git a/module/finc/src/finc/ILS/Driver/FincILS.php b/module/finc/src/finc/ILS/Driver/FincILS.php index 502e6f9f56369c3904837fc72bc3c7f332b02730..6eab90c6eea0d407403fddcaa95df5435fe46db3 100644 --- a/module/finc/src/finc/ILS/Driver/FincILS.php +++ b/module/finc/src/finc/ILS/Driver/FincILS.php @@ -1138,6 +1138,11 @@ class FincILS extends PAIA implements LoggerAwareInterface */ protected function paiaGetItems($patron, $filter = []) { + // check if user has appropriate scope + if (!$this->paiaCheckScope(self::SCOPE_READ_ITEMS)) { + throw new ILSException('You are not entitled to read items.'); + } + // check for existing data in cache if ($this->paiaCacheEnabled) { $itemsResponse = $this->getCachedData($patron['cat_username']);