diff options
-rw-r--r-- | app/php/components/PasswordChange.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/php/components/PasswordChange.php b/app/php/components/PasswordChange.php index 8aedcab..d0a90fb 100644 --- a/app/php/components/PasswordChange.php +++ b/app/php/components/PasswordChange.php @@ -9,6 +9,9 @@ class PasswordChange extends TTemplateControl { } public function setUserToChange(DbUser $user) { + if ($user->IsGuest) { + throw new TInvalidDataValueException('Password change impossible for guest user'); + } $this->setControlState('user', $user); } |