Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
msathieu committed Mar 12, 2024
1 parent fddfbdd commit 993c5af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/domain/logic/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 993c5af

Please sign in to comment.