mirror of
https://github.com/Kozea/Radicale.git
synced 2025-04-04 05:37:37 +03:00
Allow finer control in rights plugin
New permissions: R: read collections without tag r: read collections with tag and included objects W: write and delete collections without tag w: write and delete collection with tag and included objects
This commit is contained in:
parent
72501c6e23
commit
0a492a00b1
6 changed files with 124 additions and 116 deletions
10
rights
10
rights
|
@ -19,30 +19,30 @@
|
|||
[admin]
|
||||
user: admin.*
|
||||
collection: .*
|
||||
permission: r
|
||||
permissions: Rr
|
||||
|
||||
# This means all users may read and write any collection starting with public.
|
||||
# We do so by just not testing against the user string.
|
||||
[public]
|
||||
user: .*
|
||||
collection: public(/.+)?
|
||||
permission: rw
|
||||
permissions: RrWw
|
||||
|
||||
# A little more complex: give read access to users from a domain for all
|
||||
# collections of all the users (ie. user@domain.tld can read domain/*).
|
||||
[domain-wide-access]
|
||||
user: .+@(.+)\..+
|
||||
collection: {0}/.+
|
||||
permission: r
|
||||
permissions: Rr
|
||||
|
||||
# Allow authenticated user to read all collections
|
||||
[allow-everyone-read]
|
||||
user: .+
|
||||
collection: .*
|
||||
permission: r
|
||||
permissions: Rr
|
||||
|
||||
# Give write access to owners
|
||||
[owner-write]
|
||||
user: .+
|
||||
collection: %(login)s/.*
|
||||
permission: w
|
||||
permissions: Ww
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue