mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 01:35:28 +01:00
Fix bug where server_obj method was not defined
This commit is contained in:
parent
d1db65dc9c
commit
8000acd74d
@ -358,9 +358,6 @@ class PanelHandler(BaseHandler):
|
|||||||
if not superuser:
|
if not superuser:
|
||||||
self.redirect("/panel/error?error=Unauthorized access to Terminal")
|
self.redirect("/panel/error?error=Unauthorized access to Terminal")
|
||||||
return
|
return
|
||||||
server_obj = Servers_Controller.get_server_obj(server_id)
|
|
||||||
if page_data['server_stats']['running']:
|
|
||||||
server_obj.clear_term()
|
|
||||||
|
|
||||||
if subpage == 'logs':
|
if subpage == 'logs':
|
||||||
if not page_data['permissions']['Logs'] in page_data['user_permissions']:
|
if not page_data['permissions']['Logs'] in page_data['user_permissions']:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user