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"