Skip to content

Commit f4a0cee

Browse files
committed
updated evaluation endpoint to respond to auth first
1 parent f98a818 commit f4a0cee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tabpy/tabpy_server/handlers/evaluation_plane_handler.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ def initialize(self, executor, app):
4040

4141
@gen.coroutine
4242
def post(self):
43+
if self.should_fail_with_auth_error() != AuthErrorStates.NONE:
44+
self.fail_with_auth_error()
45+
return
4346
self.error_out(404, "Ad-hoc scripts have been disabled on this analytics extension, please contact your "
4447
"administrator.")
4548

0 commit comments

Comments
 (0)