scanner / as_email_service

A Django app and smtp relay service for working with 3rd party email services and asimap
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Returning `False` from the EmailAccount.has_object_write_permission disables `OPTIONS` request object metadata #49

Closed scanner closed 12 months ago

scanner commented 1 year ago

If we are using DRYRestPermissions and have denied a user 'write' permission so that they can not create an object (but allow them 'update' permission) then the rest api does NOT return the object metadata in response to OPTIONS.

So for now allow True on method == PUT.

scanner commented 12 months ago

Fixed by allowing True when method==PUT