Differential D20400 Diff 48752 src/applications/auth/guidance/PhabricatorAuthProvidersGuidanceEngineExtension.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/guidance/PhabricatorAuthProvidersGuidanceEngineExtension.php
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | if (!$domains_value && !$approval_value) { | ||||
'access controls (for example, it is deployed on a VPN) or if all of '. | 'access controls (for example, it is deployed on a VPN) or if all of '. | ||||
'the configured providers have access controls (for example, they are '. | 'the configured providers have access controls (for example, they are '. | ||||
'all private LDAP or OAuth servers).'); | 'all private LDAP or OAuth servers).'); | ||||
$results[] = $this->newWarning('core.auth.warning') | $results[] = $this->newWarning('core.auth.warning') | ||||
->setMessage($message); | ->setMessage($message); | ||||
} | } | ||||
$locked_config_key = 'auth.lock-config'; | |||||
$is_locked = PhabricatorEnv::getEnvConfig($locked_config_key); | |||||
if ($is_locked) { | |||||
$message = pht( | |||||
'Authentication provider configuration is locked, and can not be '. | |||||
'changed without being unlocked. See the configuration setting %s '. | |||||
'for details.', | |||||
phutil_tag( | |||||
'a', | |||||
array( | |||||
'href' => '/config/edit/'.$locked_config_key, | |||||
), | |||||
$locked_config_key)); | |||||
epriestley: This should not be translated: `el-autho.locky-configa` is not a valid setting. | |||||
Done Inline Actions(The key won't actually translate but %s'ing the value is pointless.) epriestley: (The key won't actually translate but %s'ing the value is pointless.) | |||||
$results[] = $this->newWarning('auth.locked-config') | |||||
->setPriority(500) | |||||
->setMessage($message); | |||||
} | |||||
return $results; | return $results; | ||||
} | } | ||||
private function renderConfigLink($key) { | private function renderConfigLink($key) { | ||||
return phutil_tag( | return phutil_tag( | ||||
'a', | 'a', | ||||
array( | array( | ||||
'href' => '/config/edit/'.$key.'/', | 'href' => '/config/edit/'.$key.'/', | ||||
'target' => '_blank', | 'target' => '_blank', | ||||
), | ), | ||||
$key); | $key); | ||||
} | } | ||||
} | } |
This should not be translated: el-autho.locky-configa is not a valid setting.