mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-14 01:06:09 +01:00
fix vhuser in function
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -7053,7 +7053,7 @@ StrictHostKeyChecking no
|
|||||||
proc = httpProc(request, 'websiteFunctions/DockerSiteHome.html',
|
proc = httpProc(request, 'websiteFunctions/DockerSiteHome.html',
|
||||||
{'dockerSite': ds})
|
{'dockerSite': ds})
|
||||||
return proc.render()
|
return proc.render()
|
||||||
|
|
||||||
def fetchWPSitesForDomain(self, userID=None, data=None):
|
def fetchWPSitesForDomain(self, userID=None, data=None):
|
||||||
try:
|
try:
|
||||||
currentACL = ACLManager.loadedACL(userID)
|
currentACL = ACLManager.loadedACL(userID)
|
||||||
@@ -7064,7 +7064,7 @@ StrictHostKeyChecking no
|
|||||||
|
|
||||||
if ACLManager.checkOwnership(domain, admin, currentACL) != 1:
|
if ACLManager.checkOwnership(domain, admin, currentACL) != 1:
|
||||||
return ACLManager.loadErrorJson('fetchStatus', 0)
|
return ACLManager.loadErrorJson('fetchStatus', 0)
|
||||||
|
|
||||||
wp_sites = WPSites.objects.filter(owner=website)
|
wp_sites = WPSites.objects.filter(owner=website)
|
||||||
sites = []
|
sites = []
|
||||||
|
|
||||||
@@ -7082,10 +7082,10 @@ StrictHostKeyChecking no
|
|||||||
version = html.escape(version)
|
version = html.escape(version)
|
||||||
|
|
||||||
|
|
||||||
sites.append({
|
sites.append({
|
||||||
'id': site.id,
|
'id': site.id,
|
||||||
'title': site.title,
|
'title': site.title,
|
||||||
'url': site.FinalURL,
|
'url': site.FinalURL,
|
||||||
'path': site.path,
|
'path': site.path,
|
||||||
'version': version,
|
'version': version,
|
||||||
})
|
})
|
||||||
@@ -7093,7 +7093,7 @@ StrictHostKeyChecking no
|
|||||||
data_ret = {'status': 1, 'fetchStatus': 1, 'error_message': "None", "sites": sites}
|
data_ret = {'status': 1, 'fetchStatus': 1, 'error_message': "None", "sites": sites}
|
||||||
json_data = json.dumps(data_ret)
|
json_data = json.dumps(data_ret)
|
||||||
return HttpResponse(json_data)
|
return HttpResponse(json_data)
|
||||||
|
|
||||||
except BaseException as msg:
|
except BaseException as msg:
|
||||||
data_ret = {'status': 0, 'fetchStatus': 0, 'error_message': str(msg)}
|
data_ret = {'status': 0, 'fetchStatus': 0, 'error_message': str(msg)}
|
||||||
json_data = json.dumps(data_ret)
|
json_data = json.dumps(data_ret)
|
||||||
|
|||||||
Reference in New Issue
Block a user