mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-22 07:22:07 +01:00
bug fix: ftp delete
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user