From 993c5afae7c5db96f6d907a85e6a6440363570c1 Mon Sep 17 00:00:00 2001 From: Mathieu Strypsteen Date: Tue, 12 Mar 2024 16:48:35 +0100 Subject: [PATCH] Add comment --- backend/domain/logic/user.py | 2 ++ 1 file changed, 2 insertions(+) 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)