wlanslovenija / django-tastypie-mongoengine

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

MongoEngineResource checks authorization twice #71

Open ghost opened 10 years ago

ghost commented 10 years ago

For update actions MongoEngineResource triggers an authorization check twice.

First time is: https://github.com/wlanslovenija/django-tastypie-mongoengine/blob/master/tastypie_mongoengine/resources.py#L559

After that it calls tastypie's .save() function which again checks the authorization