olin-build / ABE

Amorphous Blob of Events
https://abe.olin.build/
GNU Affero General Public License v3.0
7 stars 1 forks source link

A client must not be able to edit an event that is tagged with a protected label #218

Closed osteele closed 6 years ago

osteele commented 6 years ago

Add a "protected" attribute to the label model. Prevent events that include this label from creation, modification and deletion.

Implementation steps:

There is probably a simple mongodb query (using aggregates?) to query all the labels in a list of strings, project their protected attributes, and compute the "or" of those values. Maybe there is also a way to express this in mongoengine.

This issue disables any modification to protected events. #239 re-enables access for administrators.