Skip to content

Commit

Permalink
Re-add accessibleresourcefilter after refactoring code
Browse files Browse the repository at this point in the history
  • Loading branch information
driusan committed Dec 19, 2022
1 parent fd15b24 commit 7032e29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/dataquery/php/queries.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 7032e29

Please # to comment.