mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00: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:
|
||||
self.redirect("/panel/error?error=Unauthorized access to Terminal")
|
||||
return
|
||||
server_obj = Servers_Controller.get_server_obj(server_id)
|
||||
if page_data['server_stats']['running']:
|
||||
server_obj.clear_term()
|
||||
|
||||
if subpage == 'logs':
|
||||
if not page_data['permissions']['Logs'] in page_data['user_permissions']:
|
||||
|
Loading…
Reference in New Issue
Block a user