소스 검색

Allow the ``None`` value for public and private calendars

Guillaume Ayoub 14 년 전
부모
커밋
da42112740
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      radicale/acl/__init__.py

+ 4 - 2
radicale/acl/__init__.py

@@ -30,7 +30,7 @@ from radicale import config
 
 
 PUBLIC_USERS = []
-PRIVATE_USERS = [None]
+PRIVATE_USERS = []
 
 
 def _config_users(name):
@@ -40,7 +40,9 @@ def _config_users(name):
     stripped at the beginning and at the end of the values.
 
     """
-    return (user.strip() for user in config.get("acl", name).split(","))
+    for user in config.get("acl", name).split(","):
+        user = user.strip()
+        yield None if user == "None" else user
 
 
 def load():