Procházet zdrojové kódy

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

Harshg999 před 4 roky
rodič
revize
078d4fe0fb
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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