mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 14:26:16 +01:00
bug fix: deploy wp to end user
This commit is contained in:
@@ -714,7 +714,7 @@ class ACLManager:
|
||||
elif childDomain.master.admin == admin:
|
||||
return 1
|
||||
else:
|
||||
if childDomain.master.admin.owner.pk == admin:
|
||||
if childDomain.master.admin.owner == admin:
|
||||
return 1
|
||||
|
||||
except:
|
||||
@@ -722,10 +722,10 @@ class ACLManager:
|
||||
|
||||
if currentACL['admin'] == 1:
|
||||
return 1
|
||||
elif domainName.admin.pk == admin:
|
||||
elif domainName.admin == admin:
|
||||
return 1
|
||||
else:
|
||||
if domainName.admin.owner.pk == admin:
|
||||
if domainName.admin.owner == admin:
|
||||
return 1
|
||||
else:
|
||||
return 0
|
||||
|
||||
@@ -1924,7 +1924,9 @@ class ApplicationInstaller(multi.Thread):
|
||||
website.phpSelection = 'PHP 8.0'
|
||||
website.save()
|
||||
|
||||
if ACLManager.checkOwnership(website.domain, self.extraArgs['adminID'],
|
||||
admin = Administrator.objects.get(pk=self.extraArgs['adminID'])
|
||||
|
||||
if ACLManager.checkOwnership(website.domain, admin,
|
||||
self.extraArgs['currentACL']) == 0:
|
||||
statusFile = open(tempStatusPath, 'w')
|
||||
statusFile.writelines('You dont own this site.[404]')
|
||||
|
||||
Reference in New Issue
Block a user