COPS-IITBHU / hackalog-backend

https://cops-hackalog.herokuapp.com/
5 stars 19 forks source link

Permission Changes for APIs #29

Closed shubhanshu02 closed 3 years ago

shubhanshu02 commented 3 years ago

The following changes are proposed with the Pull Request:

  1. In TeamSerializer, the members field is included to show the participants of a particular hackathon.
  2. In SubmissionRUDSerializer, the depth has been incremented to get the participants' username field.
  3. In HackathonTeamView, Anonymous access for the GET method is added to allow showing participants on the Hackathon Detail page, even for users that aren't logged in.
  4. In SubmissionRUDView, Anonymous access for the GET method is added while keeping Authentication required for Ongoing Hackathon Submissions.
shubhanshu02 commented 3 years ago

Updated TeamView permissions for GET method.