Page MenuHomePhabricator

D16167.id.diff
No OneTemporary

D16167.id.diff

diff --git a/src/applications/people/storage/PhabricatorUser.php b/src/applications/people/storage/PhabricatorUser.php
--- a/src/applications/people/storage/PhabricatorUser.php
+++ b/src/applications/people/storage/PhabricatorUser.php
@@ -94,6 +94,10 @@
* @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
--- a/src/view/page/PhabricatorStandardPageView.php
+++ b/src/view/page/PhabricatorStandardPageView.php
@@ -222,7 +222,7 @@
}
if ($user) {
- if ($user->isLoggedIn()) {
+ if ($user->isUserActivated()) {
$offset = $user->getTimeZoneOffset();
$ignore_key = PhabricatorTimezoneIgnoreOffsetSetting::SETTINGKEY;

File Metadata

Mime Type
text/plain
Expires
Thu, Oct 24, 1:44 PM (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6717586
Default Alt Text
D16167.id.diff (943 B)

Event Timeline