Merge pull request #142 from mike-perdide/authenticated_feature
Adding a new "authenticated" ACL type.
This commit is contained in:
commit
3e893a3420
2
config
2
config
@ -104,7 +104,7 @@ committer = Radicale <radicale@example.com>
|
|||||||
|
|
||||||
[rights]
|
[rights]
|
||||||
# Rights backend
|
# Rights backend
|
||||||
# Value: None | owner_only | owner_write | from_file | custom
|
# Value: None | authenticated | owner_only | owner_write | from_file | custom
|
||||||
type = None
|
type = None
|
||||||
|
|
||||||
# Custom rights handler
|
# Custom rights handler
|
||||||
|
@ -52,9 +52,11 @@ except ImportError:
|
|||||||
|
|
||||||
|
|
||||||
DEFINED_RIGHTS = {
|
DEFINED_RIGHTS = {
|
||||||
|
"authenticated": "[rw]\nuser:.*\ncollection:.*\npermission:rw",
|
||||||
"owner_write": "[r]\nuser:.*\ncollection:.*\npermission:r\n"
|
"owner_write": "[r]\nuser:.*\ncollection:.*\npermission:r\n"
|
||||||
"[w]\nuser:.*\ncollection:^%(login)s/.+$\npermission:w",
|
"[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_url, permission):
|
def _read_from_sections(user, collection_url, permission):
|
||||||
|
Loading…
Reference in New Issue
Block a user