Skip to content
Snippets Groups Projects
Commit 5212c150 authored by Mathias Maaß's avatar Mathias Maaß Committed by Robert Lange
Browse files

refs #22495 [finc] Check rights for PAIA method paiaGetItems in FincILS

parent 86553ea0
No related merge requests found
......@@ -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']);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment