From 731b55a74d06efb0a3485f9bcfa5eb8ee789827d Mon Sep 17 00:00:00 2001 From: Oreo Oreoniv <28255085+zKoz210@users.noreply.github.com> Date: Tue, 22 Sep 2020 11:50:39 +0300 Subject: [PATCH] SFTP should be to allow --- .../Controllers/Api/Remote/SftpAuthenticationController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/Remote/SftpAuthenticationController.php b/app/Http/Controllers/Api/Remote/SftpAuthenticationController.php index b62d6e5c..6afee87f 100644 --- a/app/Http/Controllers/Api/Remote/SftpAuthenticationController.php +++ b/app/Http/Controllers/Api/Remote/SftpAuthenticationController.php @@ -112,7 +112,7 @@ class SftpAuthenticationController extends Controller // Remeber, for security purposes, only reveal the existence of the server to people that // have provided valid credentials, and have permissions to know about it. - if ($server->installed !== 1 || $server->suspended) { + if (! $user->root_admin && ($server->installed !== 1 || $server->suspended)) { throw new BadRequestHttpException( 'Server is not installed or is currently suspended.' );