Skip to content

Commit

Permalink
improve: user can start tour guide again
Browse files Browse the repository at this point in the history
  • Loading branch information
datlechin committed Jun 13, 2024
1 parent baecb5d commit 13df603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Access/UserPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class UserPolicy extends AbstractPolicy
{
public function resetTourGuide(User $actor, User $user)
{
if ($user->hasPermission('resetTourGuide')) {
if ($user->hasPermission('resetTourGuide') || $actor->is($user)) {
return $this->allow();
}

Expand Down

0 comments on commit 13df603

Please sign in to comment.