mirror of
https://github.com/suitenumerique/docs.git
synced 2026-09-30 13:35:10 +02:00
Abilities on team accesses are computed based on request user role. Thus, members' roles in relation with user's role matters a lot, to ensure the abilities were correctly computed. Complexified the test that lists team accesses while being authenticated. More members are added to the team with privileged roles. The user is added last to the less with the less privileged role, "member". Order matters, because when computing the sub query to determine user's role within the team, code use the first result value to set the role to compute abilities.