Skip to content

Commit

Permalink
security fix: CP-22: Websites – Modify Website
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Aug 20, 2021
1 parent bf42a54 commit 9a47edc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions websiteFunctions/website.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,12 @@ def saveWebsiteChanges(self, userID=None, data=None):
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"

Expand Down

0 comments on commit 9a47edc

Please sign in to comment.