Merge pull request #175 from Ede123/master
Return "401 unauthorized" on unauthorized DELETE requests (fixes #125)
This commit is contained in:
commit
f92f9f5e7d
@ -340,7 +340,7 @@ class Application(object):
|
||||
user):
|
||||
"""Manage DELETE request."""
|
||||
if not len(write_collections):
|
||||
return client.PRECONDITION_FAILED, {}, None
|
||||
return return NOT_ALLOWED
|
||||
|
||||
collection = write_collections[0]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user