mirror of
https://github.com/flarum/core.git
synced 2025-07-26 03:01:22 +02:00
Fix wrong permission in UserPolicy#find (#1536)
This commit is contained in:
committed by
Toby Zerner
parent
7490c70543
commit
7d5c4ad100
@@ -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