bug fix: ftp delete
This commit is contained in:
parent
df23ed2842
commit
8006322bf4
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue