Softly ignore /user/ PROPFIND and REPORT requests (references #181)

This commit is contained in:
Guillaume Ayoub
2011-02-12 12:05:02 +01:00
parent 9b535ba4b2
commit 2e1b51e3c1
2 changed files with 21 additions and 10 deletions

View File

@@ -55,6 +55,11 @@ def _check(request, function):
"""Check if user has sufficient rights for performing ``request``."""
# ``_check`` decorator can access ``request`` protected functions
# pylint: disable=W0212
# If we have no calendar, don't check rights
if not request._calendar:
return function(request)
authorization = request.headers.get("Authorization", None)
if authorization:
challenge = authorization.lstrip("Basic").strip().encode("ascii")