Fix bug where server_obj method was not defined

This commit is contained in:
Andrew 2022-01-28 19:12:57 -05:00
parent d1db65dc9c
commit 8000acd74d

View File

@ -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']: