From 770294c18007ad117f832428d062f7af77af7536 Mon Sep 17 00:00:00 2001 From: ADmad Date: Sat, 5 Oct 2024 09:19:01 +0530 Subject: [PATCH] Add missing return statement --- docs/en/impersonation.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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