diff --git a/websiteFunctions/website.py b/websiteFunctions/website.py index 574c69e01..0392b2db1 100755 --- a/websiteFunctions/website.py +++ b/websiteFunctions/website.py @@ -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"