bug fix: ftp delete

This commit is contained in:
Usman Nasir 2020-01-14 17:40:23 +05:00
parent df23ed2842
commit 8006322bf4
1 changed files with 3 additions and 1 deletions

View File

@ -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)