Skip to content
Snippets Groups Projects
Commit 8d754214 authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

fix auth redirect

parent 62b61b07
No related branches found
No related tags found
No related merge requests found
Pipeline #13621 passed
......@@ -142,7 +142,7 @@ def view_group_lectures(request, group_id: int):
if not group_id_exists: # Doesn't exist at all
raise HTTPExceptions.NOT_FOUND
elif group_id_exists: # Exists without permissions checks
if request.user_is_authenticated: # The user is logged in
if request.user.is_authenticated: # The user is logged in
raise HTTPExceptions.NOT_FOUND
else: # The user can log in
return generate_auth_redirect(request)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment