From dd9730b5f860aab23d3cd56cb9619af77ad95f58 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 4 Nov 2018 11:09:42 -0800 Subject: [PATCH] Return permissions string when authenticating SFTP --- app/Services/Sftp/AuthenticateUsingPasswordService.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Services/Sftp/AuthenticateUsingPasswordService.php b/app/Services/Sftp/AuthenticateUsingPasswordService.php index 690573926..4310a50f6 100644 --- a/app/Services/Sftp/AuthenticateUsingPasswordService.php +++ b/app/Services/Sftp/AuthenticateUsingPasswordService.php @@ -102,6 +102,7 @@ class AuthenticateUsingPasswordService return [ 'server' => $server->uuid, 'token' => $this->keyProviderService->handle($server, $user), + 'permissions' => $permissions ?? ['*'], ]; } }