Skip to content

Commit 2316c6d

Browse files
committed
code rabbit recommendation
1 parent 818b398 commit 2316c6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/apps/owasp/api/internal/views/permissions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
def has_dashboard_permission(request):
1010
"""Check if user has dashboard access."""
1111
user = getattr(request, "user", None)
12-
if not (user and user.is_authenticated and hasattr(user, "github_user")):
12+
if not (user and getattr(user, "is_authenticated", False)):
1313
return False
1414
try:
1515
github_user = user.github_user

0 commit comments

Comments
 (0)