Explorar el Código

[create_session] Remove /notebook/api/create_session from not login and allowed already

Harshg999 hace 4 años
padre
commit
078d4fe0fb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      desktop/core/src/desktop/middleware.py

+ 1 - 1
desktop/core/src/desktop/middleware.py

@@ -308,7 +308,7 @@ class LoginAndPermissionMiddleware(MiddlewareMixin):
     if request.path in ['/oidc/authenticate/', '/oidc/callback/', '/oidc/logout/', '/hue/oidc_failed/']:
       return None
 
-    if request.path.startswith('/api/') or request.path == '/notebook/api/create_session':
+    if request.path.startswith('/api/'):
       return None
 
     # Skip views not requiring login