Page MenuHomePhabricator

D16170.id.diff
No OneTemporary

D16170.id.diff

diff --git a/scripts/ssh/ssh-exec.php b/scripts/ssh/ssh-exec.php
--- a/scripts/ssh/ssh-exec.php
+++ b/scripts/ssh/ssh-exec.php
@@ -190,12 +190,14 @@
'P' => $user->getPHID(),
));
- if (!$user->canEstablishSSHSessions()) {
- throw new Exception(
- pht(
- 'Your account ("%s") does not have permission to establish SSH '.
- 'sessions. Visit the web interface for more information.',
- $user_name));
+ if (!$device) {
+ if (!$user->canEstablishSSHSessions()) {
+ throw new Exception(
+ pht(
+ 'Your account ("%s") does not have permission to establish SSH '.
+ 'sessions. Visit the web interface for more information.',
+ $user_name));
+ }
}
$workflows = id(new PhutilClassMapQuery())

File Metadata

Mime Type
text/plain
Expires
Mon, Apr 14, 5:22 PM (2 d, 15 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7718542
Default Alt Text
D16170.id.diff (780 B)

Event Timeline