From 7032e293f93cec5cf9142ce7490b23f86ca9c81b Mon Sep 17 00:00:00 2001 From: Dave MacFarlane Date: Mon, 19 Dec 2022 13:47:36 -0500 Subject: [PATCH] Re-add accessibleresourcefilter after refactoring code --- modules/dataquery/php/queries.class.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/dataquery/php/queries.class.inc b/modules/dataquery/php/queries.class.inc index 68f0a354b3a..5c0e5a11a6c 100644 --- a/modules/dataquery/php/queries.class.inc +++ b/modules/dataquery/php/queries.class.inc @@ -3,7 +3,7 @@ namespace LORIS\dataquery; use \Psr\Http\Message\ServerRequestInterface; use \Psr\Http\Message\ResponseInterface; -// use \LORIS\Data\Filters\AccessibleResourceFilter; +use \LORIS\Data\Filters\AccessibleResourceFilter; /** * Handles requests to queries under the /queries/* endpoint of @@ -149,7 +149,7 @@ class Queries extends \NDB_Page public function getUserAccessibleQueries(\User $user) : iterable { return (new provisioners\AllUserQueries($this->loris, $user)) - // ->filter(new AccessibleResourceFilter()) + ->filter(new AccessibleResourceFilter()) ->execute($user); }