mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-06-24 13:39:26 +02:00
Only redirect on logout if we're not already redirecting
This commit is contained in:
parent
bcc09deb08
commit
1d5ac5876b
|
@ -346,7 +346,9 @@ class Security extends Controller {
|
|||
$member = Member::currentUser();
|
||||
if($member) $member->logOut();
|
||||
|
||||
if($redirect) $this->redirectBack();
|
||||
if($redirect && (!$this->response || !$this->response->isFinished())) {
|
||||
$this->redirectBack();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user