Skip to content

Commit

Permalink
Fix wrong permission in UserPolicy#find (#1536)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Sevilla Martín authored and tobyzerner committed Aug 12, 2018
1 parent ef9ed7f commit 40e4c0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/User/UserPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function can(User $actor, $ability)
*/
public function find(User $actor, Builder $query)
{
if ($actor->cannot('viewDiscussions')) {
if ($actor->cannot('viewUserList')) {
$query->whereRaw('FALSE');
}
}
Expand Down

0 comments on commit 40e4c0a

Please sign in to comment.