Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/conduit/UserConduitAPIMethod.php
| Show All 12 Lines | protected function buildUserInformationDictionary( | ||||
| $roles = array(); | $roles = array(); | ||||
| if ($user->getIsDisabled()) { | if ($user->getIsDisabled()) { | ||||
| $roles[] = 'disabled'; | $roles[] = 'disabled'; | ||||
| } | } | ||||
| if ($user->getIsSystemAgent()) { | if ($user->getIsSystemAgent()) { | ||||
| $roles[] = 'agent'; | $roles[] = 'agent'; | ||||
| } | } | ||||
| if ($user->getIsMailingList()) { | |||||
| $roles[] = 'list'; | |||||
| } | |||||
| if ($user->getIsAdmin()) { | if ($user->getIsAdmin()) { | ||||
| $roles[] = 'admin'; | $roles[] = 'admin'; | ||||
| } | } | ||||
| $primary = $user->loadPrimaryEmail(); | $primary = $user->loadPrimaryEmail(); | ||||
| if ($primary && $primary->getIsVerified()) { | if ($primary && $primary->getIsVerified()) { | ||||
| $email = $primary->getAddress(); | $email = $primary->getAddress(); | ||||
| $roles[] = 'verified'; | $roles[] = 'verified'; | ||||
| Show All 40 Lines | |||||