CRIM-Project / CRIM-online

Django project for CRIM (Citations: The Renaissance Imitation Mass)
6 stars 4 forks source link

person_details page publish button auth fix #64

Closed serberoth closed 2 years ago

serberoth commented 2 years ago

This patch addresses an issue with the person details publish API endpoint, whereby a user will be told they are unauthorized to publish a relationship they clearly are authorized to publish. I have updated the auth endpoint to look at the observer that owns the instance instead of the incorrect request parameter it was looking at before, and comparing that to who is logged into the system.