Skip to content
Permalink
Browse files
bug fix: ftp delete
  • Loading branch information
usmannasir committed Jan 14, 2020
1 parent df23ed2 commit 8006322bf4818cbe77d2f6993b93be809cc6a44b
Showing with 3 additions and 1 deletion.
  1. +3 −1 ftp/ftpManager.py
@@ -180,7 +180,9 @@ def submitFTPDelete(self):
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)

0 comments on commit 8006322

Please sign in to comment.