Differential D20587 Diff 49108 src/applications/settings/panel/PhabricatorExternalAccountsSettingsPanel.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/panel/PhabricatorExternalAccountsSettingsPanel.php
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | $linkable = id(new PHUIObjectItemListView()) | ||||
->setUser($viewer) | ->setUser($viewer) | ||||
->setNoDataString( | ->setNoDataString( | ||||
pht('Your account is linked with all available providers.')); | pht('Your account is linked with all available providers.')); | ||||
$configs = id(new PhabricatorAuthProviderConfigQuery()) | $configs = id(new PhabricatorAuthProviderConfigQuery()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->withIsEnabled(true) | ->withIsEnabled(true) | ||||
->execute(); | ->execute(); | ||||
$configs = msort($configs, 'getSortVector'); | $configs = msortv($configs, 'getSortVector'); | ||||
$account_map = mgroup($accounts, 'getProviderConfigPHID'); | $account_map = mgroup($accounts, 'getProviderConfigPHID'); | ||||
foreach ($configs as $config) { | foreach ($configs as $config) { | ||||
$provider = $config->getProvider(); | $provider = $config->getProvider(); | ||||
if (!$provider->shouldAllowAccountLink()) { | if (!$provider->shouldAllowAccountLink()) { | ||||
Show All 36 Lines |