Skip to content

Commit

Permalink
fix (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
EwoutV authored May 23, 2024
1 parent 08518ae commit 9598f4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/api/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _user_creation(user: User, attributes: dict, **_):
"""Upon user creation, auto-populate additional properties"""
student_id: str = cast(str, attributes.get("ugentStudentID"))

if student_id is None:
if student_id is not None:
Student.create(user, student_id=student_id)
else:
# For now, we assume that everyone without a student ID is a teacher.
Expand Down

0 comments on commit 9598f4b

Please sign in to comment.