mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 08:22:41 +08:00
Fix permission check in UserSearcher
This commit is contained in:
parent
fb4528b8c7
commit
e6c2c52210
@ -46,7 +46,7 @@ class UserSearcher implements SearcherInterface
|
||||
public function search(UserSearchCriteria $criteria, $limit = null, $offset = 0, $load = [])
|
||||
{
|
||||
$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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user