From c1349cc8f23d6186bbaeedd5ea0a06228a16f030 Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 13 Apr 2016 23:26:41 +0200 Subject: * fixing logout on profile page (not throwing an error after logout on callback) --- app/php/controls/PasswordChange.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/php/controls/PasswordChange.php') diff --git a/app/php/controls/PasswordChange.php b/app/php/controls/PasswordChange.php index 9f2ac7f..cd901ca 100644 --- a/app/php/controls/PasswordChange.php +++ b/app/php/controls/PasswordChange.php @@ -9,7 +9,7 @@ class PasswordChange extends TTemplateControl { } public function setUserToChange(DbUser $user) { - if ($user->IsGuest) { + if ($user->IsGuest && !$this->Page->IsCallBack) { throw new TInvalidDataValueException( 'Password change impossible for guest user' ); -- cgit v1.2.3