Skip to content

Commit 8006322

Browse files
committed
bug fix: ftp delete
1 parent df23ed2 commit 8006322

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ftp/ftpManager.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ def submitFTPDelete(self):
180180
admin = Administrator.objects.get(pk=userID)
181181
ftp = Users.objects.get(user=ftpUserName)
182182

183-
if ftp.domain.admin != admin:
183+
if ACLManager.checkOwnership(ftp.domain.domain, admin, currentACL) == 1:
184+
pass
185+
else:
184186
return ACLManager.loadErrorJson()
185187

186188
FTPUtilities.submitFTPDeletion(ftpUserName)

0 commit comments

Comments
 (0)