Don't check the file twice for rights
This commit is contained in:
parent
586773148e
commit
d1379e349a
@ -37,9 +37,7 @@ except ImportError:
|
|||||||
# pylint: enable=F0401
|
# pylint: enable=F0401
|
||||||
|
|
||||||
|
|
||||||
FILENAME = (
|
FILENAME = os.path.expanduser(config.get("rights", "file"))
|
||||||
os.path.expanduser(config.get("rights", "file")) or
|
|
||||||
log.LOGGER.error("No file name configured for rights type 'regex'"))
|
|
||||||
DEFINED_RIGHTS = {
|
DEFINED_RIGHTS = {
|
||||||
"none": "[rw]\nuser:.*\ncollection:.*\npermission:rw",
|
"none": "[rw]\nuser:.*\ncollection:.*\npermission:rw",
|
||||||
"owner_write": "[r]\nuser:.*\ncollection:.*\npermission:r\n"
|
"owner_write": "[r]\nuser:.*\ncollection:.*\npermission:r\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user