mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 22:06:05 +01:00
backup ownership check not needed as query already includes the owner parameter
This commit is contained in:
@@ -396,10 +396,10 @@ class WebsiteManager:
|
||||
|
||||
backobj = WPSitesBackup.objects.filter(owner=admin).order_by('-id')
|
||||
|
||||
if ACLManager.CheckIPBackupObjectOwner(currentACL, backobj, admin) == 1:
|
||||
pass
|
||||
else:
|
||||
return ACLManager.loadError()
|
||||
# if ACLManager.CheckIPBackupObjectOwner(currentACL, backobj, admin) == 1:
|
||||
# pass
|
||||
# else:
|
||||
# return ACLManager.loadError()
|
||||
|
||||
try:
|
||||
if DeleteID != None:
|
||||
|
||||
Reference in New Issue
Block a user