mirror of
https://github.com/flarum/core.git
synced 2025-07-26 19:20:21 +02:00
Fix wrong permission in UserPolicy#find (#1536)
This commit is contained in:
committed by
Toby Zerner
parent
ef9ed7f4fa
commit
40e4c0acdd
@@ -38,7 +38,7 @@ class UserPolicy extends AbstractPolicy
|
|||||||
*/
|
*/
|
||||||
public function find(User $actor, Builder $query)
|
public function find(User $actor, Builder $query)
|
||||||
{
|
{
|
||||||
if ($actor->cannot('viewDiscussions')) {
|
if ($actor->cannot('viewUserList')) {
|
||||||
$query->whereRaw('FALSE');
|
$query->whereRaw('FALSE');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user