Changeset View
Changeset View
Standalone View
Standalone View
scripts/ssh/ssh-exec.php
| Show First 20 Lines • Show All 184 Lines • ▼ Show 20 Lines | try { | ||||
| } | } | ||||
| $ssh_log->setData( | $ssh_log->setData( | ||||
| array( | array( | ||||
| 'u' => $user_name, | 'u' => $user_name, | ||||
| 'P' => $user->getPHID(), | 'P' => $user->getPHID(), | ||||
| )); | )); | ||||
| if (!$device) { | |||||
| if (!$user->canEstablishSSHSessions()) { | if (!$user->canEstablishSSHSessions()) { | ||||
| throw new Exception( | throw new Exception( | ||||
| pht( | pht( | ||||
| 'Your account ("%s") does not have permission to establish SSH '. | 'Your account ("%s") does not have permission to establish SSH '. | ||||
| 'sessions. Visit the web interface for more information.', | 'sessions. Visit the web interface for more information.', | ||||
| $user_name)); | $user_name)); | ||||
| } | } | ||||
| } | |||||
| $workflows = id(new PhutilClassMapQuery()) | $workflows = id(new PhutilClassMapQuery()) | ||||
| ->setAncestorClass('PhabricatorSSHWorkflow') | ->setAncestorClass('PhabricatorSSHWorkflow') | ||||
| ->setUniqueMethod('getName') | ->setUniqueMethod('getName') | ||||
| ->execute(); | ->execute(); | ||||
| if (!$original_argv) { | if (!$original_argv) { | ||||
| throw new Exception( | throw new Exception( | ||||
| ▲ Show 20 Lines • Show All 97 Lines • Show Last 20 Lines | |||||