SFTP should be to allow

This commit is contained in:
Oreo Oreoniv 2020-09-22 11:50:39 +03:00 committed by GitHub
parent 26e7b1b052
commit 731b55a74d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.'
);