mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-13 18:50:53 +00:00
Always allow OPTIONS requests (fixes #780)
This commit is contained in:
parent
505fd6a644
commit
a9c74ae84d
1 changed files with 2 additions and 2 deletions
|
@ -197,8 +197,8 @@ class Application(object):
|
||||||
function = getattr(self, environ["REQUEST_METHOD"].lower())
|
function = getattr(self, environ["REQUEST_METHOD"].lower())
|
||||||
|
|
||||||
# Check rights
|
# Check rights
|
||||||
if not items or not self.acl:
|
if not items or not self.acl or function == self.options:
|
||||||
# No collection or no acl, don't check rights
|
# No collection, or no acl, or OPTIONS request: don't check rights
|
||||||
status, headers, answer = function(environ, items, content, None)
|
status, headers, answer = function(environ, items, content, None)
|
||||||
else:
|
else:
|
||||||
# Ask authentication backend to check rights
|
# Ask authentication backend to check rights
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue