1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-27 07:50:57 +01:00

Show primary email in approval queue interface

Summary:
Request from @csilvers. When approving users, the primary email address is useful for administrators.

(This queue is only accessible by administrators, so this doesn't expose email information in general.)

Test Plan: {F132912}

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: shadowhand, csilvers, epriestley

Differential Revision: https://secure.phabricator.com/D8589
This commit is contained in:
epriestley 2014-03-25 13:59:01 -07:00
parent 0a76d82a7c
commit 62e3463ab7

View file

@ -62,6 +62,10 @@ final class PhabricatorPeopleListController extends PhabricatorPeopleController
->addAttribute($email)
->setImageURI($user->getProfileImageURI());
if ($is_approval && $primary_email) {
$item->addAttribute($primary_email->getAddress());
}
if ($user->getIsDisabled()) {
$item->addIcon('disable', pht('Disabled'));
}