mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-11 07:46:10 +01:00
further refoctor default render dockercontainer
This commit is contained in:
@@ -36,16 +36,7 @@ class ContainerManager(multi.Thread):
|
|||||||
self.data = data
|
self.data = data
|
||||||
|
|
||||||
def renderDM(self):
|
def renderDM(self):
|
||||||
|
proc = httpProc(self.request, self.templateName, self.data, 'admin')
|
||||||
userID = self.request.session['userID']
|
|
||||||
currentACL = ACLManager.loadedACL(userID)
|
|
||||||
|
|
||||||
if currentACL['admin'] == 1:
|
|
||||||
pass
|
|
||||||
else:
|
|
||||||
return ACLManager.loadError()
|
|
||||||
|
|
||||||
proc = httpProc(self.request, self.templateName, self.data)
|
|
||||||
return proc.render()
|
return proc.render()
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user