Use grey dots for disabled users, even if a user is also unverified
Summary: Fixes T12559.
Test Plan:
{F4929988}
{F4929989}
{F4929990}
Reviewers: chad
Reviewed By: chad
Maniphest Tasks: T12559
Differential Revision: https://secure.phabricator.com/D17806
This commit is contained in:
@@ -150,7 +150,9 @@ final class PhabricatorMentionRemarkupRule extends PhutilRemarkupRule {
|
|||||||
$tag->addClass('phabricator-remarkup-mention-nopermission');
|
$tag->addClass('phabricator-remarkup-mention-nopermission');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$user->isResponsive()) {
|
if ($user->getIsDisabled()) {
|
||||||
|
$tag->setDotColor(PHUITagView::COLOR_GREY);
|
||||||
|
} else if (!$user->isResponsive()) {
|
||||||
$tag->setDotColor(PHUITagView::COLOR_VIOLET);
|
$tag->setDotColor(PHUITagView::COLOR_VIOLET);
|
||||||
} else {
|
} else {
|
||||||
if ($user->getAwayUntil()) {
|
if ($user->getAwayUntil()) {
|
||||||
|
|||||||
@@ -61,7 +61,9 @@ final class PhabricatorPeopleUserPHIDType extends PhabricatorPHIDType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$availability = null;
|
$availability = null;
|
||||||
if (!$user->isResponsive()) {
|
if ($user->getIsDisabled()) {
|
||||||
|
$availability = PhabricatorObjectHandle::AVAILABILITY_DISABLED;
|
||||||
|
} else if (!$user->isResponsive()) {
|
||||||
$availability = PhabricatorObjectHandle::AVAILABILITY_NOEMAIL;
|
$availability = PhabricatorObjectHandle::AVAILABILITY_NOEMAIL;
|
||||||
} else {
|
} else {
|
||||||
$until = $user->getAwayUntil();
|
$until = $user->getAwayUntil();
|
||||||
|
|||||||
Reference in New Issue
Block a user