1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-07-05 17:08:29 +00:00

Update the rights configuration file sample

Fix #393
This commit is contained in:
Guillaume Ayoub 2016-05-09 18:48:59 +02:00
parent 59721bae8b
commit bccdd75827

View file

@ -1068,37 +1068,46 @@ Example:
.. code-block:: ini .. code-block:: ini
# This means all users starting with "admin" may read any collection # The default path for this kind of files is ~/.config/radicale/rights
[admin] # This can be changed in the configuration file
user: ^admin.*$ #
collection: .* # This file gives independant examples to help users write their own
permission: r # configuration files. Using these examples together in the same configuration
# file is meaningless.
#
# The first rule matching both user and collection patterns will be returned.
# This means all users may read and write any collection starting with public. # This means all users starting with "admin" may read any collection
# We do so by just not testing against the user string. [admin]
[public] user: ^admin.*$
user: .* collection: .*
collection: ^public(/.+)?$ permission: r
permission: rw
# A little more complex: give read access to users from a domain for all # This means all users may read and write any collection starting with public.
# collections of all the users (ie. user@domain.tld can read domain/\*). # We do so by just not testing against the user string.
[domain-wide-access] [public]
user: ^.+@(.+)\..+$ user: .*
collection: ^{0}/.+$ collection: ^public(/.+)?$
permission: r permission: rw
# Allow authenticated user to read all collections # A little more complex: give read access to users from a domain for all
[allow-everyone-read] # collections of all the users (ie. user@domain.tld can read domain/*).
user: .+ [domain-wide-access]
collection: .* user: ^.+@(.+)\..+$
permission: r collection: ^{0}/.+$
permission: r
# Give write access to owners # Allow authenticated user to read all collections
[owner-write] [allow-everyone-read]
user: .+ user: .+
collection: ^%(login)s/.+$ collection: .*
permission: w permission: r
# Give write access to owners
[owner-write]
user: .+
collection: ^%(login)s/.*$
permission: w
Git Support Git Support