diff --git a/docs/en/impersonation.rst b/docs/en/impersonation.rst index 55dabf39..e4caf7a7 100644 --- a/docs/en/impersonation.rst +++ b/docs/en/impersonation.rst @@ -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