FrancisG-Massey / Capstone2016

4 stars 0 forks source link

Trapline enrollments should not be transferable. #244

Closed sam-hunt closed 7 years ago

sam-hunt commented 7 years ago

Currently making a PUT /trapline-user request can change both the trapline of the enrolment, and the user of the enrolment. This circumvents the permissions on POST requests to the same entity and should not be allowed.

Realistically, we should only allow toggling the admin/non-admin status of trapline-user enrollments as there are no other fields on the record.

Adding or removing enrollments can be done with POST and DELETE, so we don't need these editable here.