Fix a lot of details

This commit is contained in:
Guillaume Ayoub
2016-04-12 18:21:18 +02:00
parent 406027f3c9
commit e586569b31
4 changed files with 29 additions and 10 deletions

View File

@ -127,7 +127,7 @@ def authorized(user, collection, permission):
If the user is empty, check for anonymous rights.
"""
collection_url = collection.url.rstrip("/") or "/"
collection_url = collection.path.rstrip("/") or "/"
if collection_url in (".well-known/carddav", ".well-known/caldav"):
return permission == "r"
rights_type = config.get("rights", "type").lower()