Fix built-in owner_only right

This commit is contained in:
Ossi Salmi 2013-08-28 00:56:45 +03:00
parent 2a2b80e5fb
commit 8c3cf6bccd

View File

@ -55,7 +55,7 @@ TYPE = config.get("rights", "type").lower()
DEFINED_RIGHTS = {
"owner_write": "[r]\nuser:.*\ncollection:.*\npermission:r\n"
"[w]\nuser:.*\ncollection:^%(login)s/.+$\npermission:w",
"owner_only": "[rw]\nuser:.\ncollection: ^%(login)s/.+$\npermission:rw"}
"owner_only": "[rw]\nuser:.*\ncollection:^%(login)s/.+$\npermission:rw"}
def _read_from_sections(user, collection, permission):