Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/customfield/PhabricatorUserRolesField.php
| Show All 31 Lines | if ($user->getIsDisabled()) { | ||||
| $roles[] = pht('Disabled'); | $roles[] = pht('Disabled'); | ||||
| } | } | ||||
| if (!$user->getIsApproved()) { | if (!$user->getIsApproved()) { | ||||
| $roles[] = pht('Not Approved'); | $roles[] = pht('Not Approved'); | ||||
| } | } | ||||
| if ($user->getIsSystemAgent()) { | if ($user->getIsSystemAgent()) { | ||||
| $roles[] = pht('Bot'); | $roles[] = pht('Bot'); | ||||
| } | } | ||||
| if ($user->getIsMailingList()) { | |||||
| $roles[] = pht('Mailing List'); | |||||
| } | |||||
| if ($roles) { | if ($roles) { | ||||
| return implode(', ', $roles); | return implode(', ', $roles); | ||||
| } | } | ||||
| return null; | return null; | ||||
| } | } | ||||
| } | } | ||||