Changeset View
Changeset View
Standalone View
Standalone View
scripts/ssh/ssh-exec.php
| Show First 20 Lines • Show All 176 Lines • ▼ Show 20 Lines | try { | ||||
| } | } | ||||
| $ssh_log->setData( | $ssh_log->setData( | ||||
| array( | array( | ||||
| 'u' => $user->getUsername(), | 'u' => $user->getUsername(), | ||||
| 'P' => $user->getPHID(), | 'P' => $user->getPHID(), | ||||
| )); | )); | ||||
| if (!$user->isUserActivated()) { | if (!$user->canEstablishSSHSessions()) { | ||||
| throw new Exception( | throw new Exception( | ||||
| pht( | pht( | ||||
| 'Your account ("%s") is not activated. Visit the web interface '. | 'Your account ("%s") does not have permission to establish SSH '. | ||||
| 'for more information.', | 'sessions. Visit the web interface for more information.', | ||||
| $user->getUsername())); | $user->getUsername())); | ||||
| } | } | ||||
| $workflows = id(new PhutilSymbolLoader()) | $workflows = id(new PhutilSymbolLoader()) | ||||
| ->setAncestorClass('PhabricatorSSHWorkflow') | ->setAncestorClass('PhabricatorSSHWorkflow') | ||||
| ->loadObjects(); | ->loadObjects(); | ||||
| $workflow_names = mpull($workflows, 'getName', 'getName'); | $workflow_names = mpull($workflows, 'getName', 'getName'); | ||||
| ▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines | |||||