소스 검색

Merge pull request #385 from untitaker/rights-fixes

Fixes to Rights
Guillaume Ayoub 10 년 전
부모
커밋
2cda64245e
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      radicale/rights.py

+ 2 - 1
radicale/rights.py

@@ -97,11 +97,12 @@ class BaseRights:
 
 class Rights(BaseRights):
     def __init__(self, configuration, logger):
-        super().__init__()
+        super().__init__(configuration, logger)
         self.filename = os.path.expanduser(configuration.get("rights", "file"))
         self.rights_type = configuration.get("rights", "type").lower()
 
     def authorized(self, user, collection, permission):
+        user = user or ''
         collection_url = collection.path.rstrip("/") or "/"
         if collection_url in (".well-known/carddav", ".well-known/caldav"):
             return permission == "r"