Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/storage/PhabricatorUser.php
| Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Lines | if (PhabricatorUserEmail::isEmailVerificationRequired()) { | ||||
| if (!$this->getIsEmailVerified()) { | if (!$this->getIsEmailVerified()) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| } | } | ||||
| return true; | return true; | ||||
| } | } | ||||
| /** | |||||
| * Is this a user who we can reasonably expect to respond to requests? | |||||
| * | |||||
| * This is used to provide a grey "disabled/unresponsive" dot cue when | |||||
| * rendering handles and tags, so it isn't a surprise if you get ignored | |||||
| * when you ask things of users who will not receive notifications or could | |||||
| * not respond to them (because they are disabled, unapproved, do not have | |||||
| * verified email addresses, etc). | |||||
| * | |||||
| * @return bool True if this user can receive and respond to requests from | |||||
| * other humans. | |||||
| */ | |||||
| public function isResponsive() { | |||||
| if (!$this->isUserActivated()) { | |||||
| return false; | |||||
| } | |||||
| if (!$this->getIsEmailVerified()) { | |||||
| return false; | |||||
| } | |||||
| return true; | |||||
| } | |||||
| public function canEstablishWebSessions() { | public function canEstablishWebSessions() { | ||||
| if ($this->getIsMailingList()) { | if ($this->getIsMailingList()) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| if ($this->getIsSystemAgent()) { | if ($this->getIsSystemAgent()) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,427 Lines • Show Last 20 Lines | |||||