mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-02-13 18:16:48 +01:00
security fix: CP-22: Websites – Modify Website
This commit is contained in:
@@ -766,6 +766,12 @@ class WebsiteManager:
|
||||
else:
|
||||
return ACLManager.loadErrorJson('websiteDeleteStatus', 0)
|
||||
|
||||
newOwner = Administrator.objects.get(userName=newUser)
|
||||
if ACLManager.checkUserOwnerShip(currentACL, admin, newOwner) == 1:
|
||||
pass
|
||||
else:
|
||||
return ACLManager.loadErrorJson('websiteDeleteStatus', 0)
|
||||
|
||||
confPath = virtualHostUtilities.Server_root + "/conf/vhosts/" + domain
|
||||
completePathToConfigFile = confPath + "/vhost.conf"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user