mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-30 10:42:41 +01:00
Restore setting "disabled" on user handles of disabled users
Summary: Fixes T3666. D6585 updated the User handles, but accidentally dropped this unusual property. We should get rid of this -- it doesn't really make any sense on Handles -- but restore the previous beahvior to fix T3666 until we can nuke it. Test Plan: Clicked some pages? (Actually testing this properly is a bit of a pain and I am super lazy.) Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T3666 Differential Revision: https://secure.phabricator.com/D6644
This commit is contained in:
parent
1663dc32c9
commit
fd2593e8ab
1 changed files with 1 additions and 0 deletions
|
@ -40,6 +40,7 @@ final class PhabricatorPeoplePHIDTypeUser extends PhabricatorPHIDType {
|
||||||
$handle->setFullName(
|
$handle->setFullName(
|
||||||
$user->getUsername().' ('.$user->getRealName().')');
|
$user->getUsername().' ('.$user->getRealName().')');
|
||||||
$handle->setImageURI($user->loadProfileImageURI());
|
$handle->setImageURI($user->loadProfileImageURI());
|
||||||
|
$handle->setDisabled($user->getIsDisabled());
|
||||||
if ($user->hasStatus()) {
|
if ($user->hasStatus()) {
|
||||||
$status = $user->getStatus();
|
$status = $user->getStatus();
|
||||||
$handle->setStatus($status->getTextStatus());
|
$handle->setStatus($status->getTextStatus());
|
||||||
|
|
Loading…
Reference in a new issue