فهرست منبع

HUE-9396 [core] Implement SAML groups check and redirect them to 403 page if not permitted. (#1202)

Prakash Ranade 5 سال پیش
والد
کامیت
163cfbfecd
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      desktop/core/src/desktop/views.py

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

@@ -85,7 +85,7 @@ def samlgroup_check(request):
       try:
         userprofile = get_profile(request.user)
       except:
-        return True
+        return False
 
       json_data = json.loads(userprofile.json_data)
       if not json_data: