From d8c034541095ed158491a9731a680f8d06e0a938 Mon Sep 17 00:00:00 2001 From: Marcel Baumgartner Date: Thu, 20 Apr 2023 13:41:15 +0200 Subject: [PATCH] Added admin check to sftp login system --- Moonlight/App/Services/ServerService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Moonlight/App/Services/ServerService.cs b/Moonlight/App/Services/ServerService.cs index ebf8b836..3129f9fb 100644 --- a/Moonlight/App/Services/ServerService.cs +++ b/Moonlight/App/Services/ServerService.cs @@ -379,7 +379,7 @@ public class ServerService var user = await UserService.SftpLogin(id, password); - if (server.Owner.Id == user.Id) + if (server.Owner.Id == user.Id || user.Admin) { return server; }