From e238af9cb266a24460488a1f2b87ba8b7f80f8de Mon Sep 17 00:00:00 2001 From: EwoutV Date: Thu, 23 May 2024 21:59:14 +0200 Subject: [PATCH] fix --- backend/api/signals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/api/signals.py b/backend/api/signals.py index f7e42d89..13cecafe 100644 --- a/backend/api/signals.py +++ b/backend/api/signals.py @@ -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.