**Describe the bug** User has a role A (isDirect=false). If we attach same role, we see that the API return both roles with isDirect = false. **To Reproduce** https://github.com/ditrit/leto-modelizer-api/assets/62500081/c868a172-6b9f-422b-87fd-5fe04c400dcd **Expected behavior** In this case, we expect to have one role with isDirect = false and the other (that has been directly attached to the user) with isDirect = true.
Describe the bug
User has a role A (isDirect=false). If we attach same role, we see that the API return both roles with isDirect = false.
To Reproduce
bug_attached_role.mp4
Expected behavior
In this case, we expect to have one role with isDirect = false and the other (that has been directly attached to the user) with isDirect = true.