Merge pull request #82 from Moonlight-Panel/FixSftpAdminCheck

Added admin check to sftp login system
This commit is contained in:
Marcel Baumgartner
2023-04-20 13:42:10 +02:00
committed by GitHub

View File

@@ -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;
}