Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/storage/PhabricatorUser.php
| Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | final class PhabricatorUser | ||||
| /** | /** | ||||
| * Is this a live account which has passed required approvals? Returns true | * Is this a live account which has passed required approvals? Returns true | ||||
| * if this is an enabled, verified (if required), approved (if required) | * if this is an enabled, verified (if required), approved (if required) | ||||
| * account, and false otherwise. | * account, and false otherwise. | ||||
| * | * | ||||
| * @return bool True if this is a standard, usable account. | * @return bool True if this is a standard, usable account. | ||||
| */ | */ | ||||
| public function isUserActivated() { | public function isUserActivated() { | ||||
| if ($this->isOmnipotent()) { | |||||
| return true; | |||||
| } | |||||
| if ($this->getIsDisabled()) { | if ($this->getIsDisabled()) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| if (!$this->getIsApproved()) { | if (!$this->getIsApproved()) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 858 Lines • Show Last 20 Lines | |||||