wlanslovenija / django-tastypie-mongoengine

MongoEngine support for django-tastypie.
Other
73 stars 59 forks source link

MongoEngineListResource does not check authorization #72

Open ghost opened 10 years ago

ghost commented 10 years ago

MongoEngineListResource objects do not check authorization for any changes (create, update, delete) prior to performing them. In obj_update for example https://github.com/wlanslovenija/django-tastypie-mongoengine/blob/master/tastypie_mongoengine/resources.py#L854 the change is made and saved without ever checking in for authorization to make the change. The only permissions enforced here are read_* checks when getting the parent/containing Document.