1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-07-02 16:58:30 +00:00

Don't check the file twice for rights

This commit is contained in:
Guillaume Ayoub 2013-08-14 10:52:50 +02:00
parent 586773148e
commit d1379e349a

View file

@ -37,9 +37,7 @@ except ImportError:
# pylint: enable=F0401
FILENAME = (
os.path.expanduser(config.get("rights", "file")) or
log.LOGGER.error("No file name configured for rights type 'regex'"))
FILENAME = os.path.expanduser(config.get("rights", "file"))
DEFINED_RIGHTS = {
"none": "[rw]\nuser:.*\ncollection:.*\npermission:rw",
"owner_write": "[r]\nuser:.*\ncollection:.*\npermission:r\n"