From 8006322bf4818cbe77d2f6993b93be809cc6a44b Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Tue, 14 Jan 2020 17:40:23 +0500 Subject: [PATCH] bug fix: ftp delete --- ftp/ftpManager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ftp/ftpManager.py b/ftp/ftpManager.py index bdb028ae2..274b12117 100755 --- a/ftp/ftpManager.py +++ b/ftp/ftpManager.py @@ -180,7 +180,9 @@ class FTPManager: admin = Administrator.objects.get(pk=userID) ftp = Users.objects.get(user=ftpUserName) - if ftp.domain.admin != admin: + if ACLManager.checkOwnership(ftp.domain.domain, admin, currentACL) == 1: + pass + else: return ACLManager.loadErrorJson() FTPUtilities.submitFTPDeletion(ftpUserName)