mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-04 18:22:26 +00:00
Allow the `None
` value for public and private calendars
This commit is contained in:
parent
f9836ab093
commit
da42112740
1 changed files with 4 additions and 2 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue