You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edit: Seems it only works when logged in 🙌. The extraction is possible through the GUI "Add collaborator" auto completion feature, but giving out the list like that might not be desired.
Edit: Maybe that's another issue but /competitions is also not consistent with the rights defined by CompetitionViewSet. The later lists competitions belonging to someone else only if published, whereas the former lists all competitions. That's not a big privacy issue but the access right might need some "unification". Maybe by being defined at the API level rather than through views?
I re-open this issue because #929 got reverted. Indeed, this change is breaking the organizer interface used to approve / revoke participants (the buttons simply stops working).
Activity
Didayolo commentedon May 22, 2023
Good catch, thank you for reporting this problem.
When using the editor through the UI to add collaborators, the behavior is as excepted:
Not able to see the email when not logged in as an administrator of the platform:
Able to see the email when logged in as an administrator of the platform:
It seems that, using the REST API, the emails are always given? That is an important leakage that we need to fix.
lbeziaud commentedon May 22, 2023
Emails are indeed given although I'm no admin. I reported the issue while looking at
/competitionsbut the email issue is more obvious by looking at https://www.codabench.org/api/participants/. Seems the API is not following the email access rights you describe for the UI (visible only when admin). I'm not familiar with Django REST framework but I guessthe issue is with CompetitionParticipantViewSet or CompetitionParticipantSerializer.
Edit: Maybe that's another issue but
/competitionsis also not consistent with the rights defined by CompetitionViewSet. The later lists competitions belonging to someone else only if published, whereas the former lists all competitions. That's not a big privacy issue but the access right might need some "unification". Maybe by being defined at the API level rather than through views?Didayolo commentedon Jun 12, 2023
I close this issue to keep track of this directly in the PR.
Didayolo commentedon Jun 30, 2023
I re-open this issue because #929 got reverted. Indeed, this change is breaking the organizer interface used to approve / revoke participants (the buttons simply stops working).
We therefore need to:
Didayolo commentedon Jul 5, 2023
Related: #1008
ihsaan-ullah commentedon Aug 14, 2023
@Didayolo this issue is done