diff --git a/backend/domain/logic/user.py b/backend/domain/logic/user.py index 92c7ff5c..b3f25f9b 100644 --- a/backend/domain/logic/user.py +++ b/backend/domain/logic/user.py @@ -34,6 +34,8 @@ def get_all_users(session: Session) -> list[UserDataclass]: def modify_user_roles(session: Session, uid: int, roles: list[Role]) -> None: + # Er is geen ondersteuning om een student/teacher role af te nemen, + # want dit zou problemen geven met relaties in de databank if Role.STUDENT in roles and session.get(Student, uid) is None: student = Student(id=uid) session.add(student)