Skip to content

Commit

Permalink
Merge pull request #675 from cakephp/ADmad-patch-1
Browse files Browse the repository at this point in the history
Add missing return statement
  • Loading branch information
dereuromark authored Oct 5, 2024
2 parents 9172b13 + 770294c commit 5d4885b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/en/impersonation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ user from your application's database::

// Enable impersonation.
$this->Authentication->impersonate($targetUser);
$this->redirect($this->referer());

return $this->redirect($this->referer());
}

Once you have started to impersonate a user, all subsequent requests will have
Expand Down

0 comments on commit 5d4885b

Please sign in to comment.