mirror of
https://github.com/flarum/framework.git
synced 2025-05-15 02:38:33 +08:00
Fix permission check in UserSearcher
This commit is contained in:
parent
b7617fa5d3
commit
a7e02ca890
@ -46,7 +46,7 @@ class UserSearcher implements SearcherInterface
|
|||||||
public function search(UserSearchCriteria $criteria, $limit = null, $offset = 0, $load = [])
|
public function search(UserSearchCriteria $criteria, $limit = null, $offset = 0, $load = [])
|
||||||
{
|
{
|
||||||
$this->user = $criteria->user;
|
$this->user = $criteria->user;
|
||||||
$this->query = $this->users->query()->whereCan($criteria->user, 'view');
|
$this->query = $this->users->query()->whereVisibleTo($criteria->user);
|
||||||
|
|
||||||
$this->gambits->apply($criteria->query, $this);
|
$this->gambits->apply($criteria->query, $this);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user