diff --git a/src/applications/people/storage/PhabricatorUser.php b/src/applications/people/storage/PhabricatorUser.php index 5e8cb77a72..81a5126474 100644 --- a/src/applications/people/storage/PhabricatorUser.php +++ b/src/applications/people/storage/PhabricatorUser.php @@ -94,6 +94,10 @@ final class PhabricatorUser * @return bool True if this is a standard, usable account. */ public function isUserActivated() { + if (!$this->isLoggedIn()) { + return false; + } + if ($this->isOmnipotent()) { return true; } diff --git a/src/view/page/PhabricatorStandardPageView.php b/src/view/page/PhabricatorStandardPageView.php index e37da7c5ea..866268c710 100644 --- a/src/view/page/PhabricatorStandardPageView.php +++ b/src/view/page/PhabricatorStandardPageView.php @@ -222,7 +222,7 @@ final class PhabricatorStandardPageView extends PhabricatorBarePageView } if ($user) { - if ($user->isLoggedIn()) { + if ($user->isUserActivated()) { $offset = $user->getTimeZoneOffset(); $ignore_key = PhabricatorTimezoneIgnoreOffsetSetting::SETTINGKEY;