diff options
-rw-r--r-- | app/php/controls/PasswordChange.php | 2 | ||||
-rw-r--r-- | app/php/controls/TimezoneSelect.php | 2 |
2 files changed, 2 insertions, 2 deletions
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' ); diff --git a/app/php/controls/TimezoneSelect.php b/app/php/controls/TimezoneSelect.php index 3302e2a..592a9e7 100644 --- a/app/php/controls/TimezoneSelect.php +++ b/app/php/controls/TimezoneSelect.php @@ -10,7 +10,7 @@ class TimezoneSelect extends TTemplateControl { } public function setUserToChange(DbUser $user) { - if ($user->IsGuest) { + if ($user->IsGuest && !$this->Page->IsCallBack) { throw new TInvalidDataValueException( 'Timezone preference change impossible for guest user' ); |