Skip to content

Commit

Permalink
Fix crash when accessing syllabus without login
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdoupe committed Dec 11, 2023
1 parent 7bf7a3d commit 371a17a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dojo_plugin/pages/course.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def view_course(dojo, resource=None):
setup["create_discord"] = "incomplete"
setup["link_discord"] = "incomplete"

if get_discord_user(user.id):
if user and get_discord_user(user.id):
setup["join_discord"] = "complete"
else:
setup["join_discord"] = "incomplete"
Expand Down

0 comments on commit 371a17a

Please sign in to comment.