Merge branch 'master' into redesign-2015
This commit is contained in:
@@ -182,11 +182,11 @@ try {
|
||||
'P' => $user->getPHID(),
|
||||
));
|
||||
|
||||
if (!$user->isUserActivated()) {
|
||||
if (!$user->canEstablishSSHSessions()) {
|
||||
throw new Exception(
|
||||
pht(
|
||||
'Your account ("%s") is not activated. Visit the web interface '.
|
||||
'for more information.',
|
||||
'Your account ("%s") does not have permission to establish SSH '.
|
||||
'sessions. Visit the web interface for more information.',
|
||||
$user->getUsername()));
|
||||
}
|
||||
|
||||
|
||||
@@ -125,7 +125,7 @@ if (strlen($password)) {
|
||||
|
||||
$is_system_agent = $user->getIsSystemAgent();
|
||||
$set_system_agent = phutil_console_confirm(
|
||||
pht('Is this user a bot/script?'),
|
||||
pht('Is this user a bot?'),
|
||||
$default_no = !$is_system_agent);
|
||||
|
||||
$verify_email = null;
|
||||
@@ -165,7 +165,7 @@ printf($tpl, pht('Password'), null,
|
||||
|
||||
printf(
|
||||
$tpl,
|
||||
pht('Bot/Script'),
|
||||
pht('Bot'),
|
||||
$original->getIsSystemAgent() ? 'Y' : 'N',
|
||||
$set_system_agent ? 'Y' : 'N');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user