We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 818b398 commit 2316c6dCopy full SHA for 2316c6d
backend/apps/owasp/api/internal/views/permissions.py
@@ -9,7 +9,7 @@
9
def has_dashboard_permission(request):
10
"""Check if user has dashboard access."""
11
user = getattr(request, "user", None)
12
- if not (user and user.is_authenticated and hasattr(user, "github_user")):
+ if not (user and getattr(user, "is_authenticated", False)):
13
return False
14
try:
15
github_user = user.github_user
0 commit comments