Show More
@@ -21,4 +21,8 b' class NewTerminalHandler(IPythonHandler):' | |||||
21 | name, _ = self.application.terminal_manager.new_named_terminal() |
|
21 | name, _ = self.application.terminal_manager.new_named_terminal() | |
22 | self.redirect("/terminals/%s" % name, permanent=False) |
|
22 | self.redirect("/terminals/%s" % name, permanent=False) | |
23 |
|
23 | |||
24 |
TermSocket |
|
24 | class TermSocket(terminado.TermSocket, IPythonHandler): | |
|
25 | def get(self, *args, **kwargs): | |||
|
26 | if not self.get_current_user(): | |||
|
27 | raise web.HTTPError(403) | |||
|
28 | return super(TermSocket, self).get(*args, **kwargs) |
General Comments 0
You need to be logged in to leave comments.
Login now