1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-07-02 16:58:30 +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.
# This means all users may read and write any collection starting with public. #
# We do so by just not testing against the user string. # The first rule matching both user and collection patterns will be returned.
[public]
user: .* # This means all users starting with "admin" may read any collection
collection: ^public(/.+)?$ [admin]
permission: rw user: ^admin.*$
collection: .*
# A little more complex: give read access to users from a domain for all permission: r
# collections of all the users (ie. user@domain.tld can read domain/\*).
[domain-wide-access] # This means all users may read and write any collection starting with public.
user: ^.+@(.+)\..+$ # We do so by just not testing against the user string.
collection: ^{0}/.+$ [public]
permission: r user: .*
collection: ^public(/.+)?$
# Allow authenticated user to read all collections permission: rw
[allow-everyone-read]
user: .+ # A little more complex: give read access to users from a domain for all
collection: .* # collections of all the users (ie. user@domain.tld can read domain/*).
permission: r [domain-wide-access]
user: ^.+@(.+)\..+$
# Give write access to owners collection: ^{0}/.+$
[owner-write] permission: r
user: .+
collection: ^%(login)s/.+$ # Allow authenticated user to read all collections
permission: w [allow-everyone-read]
user: .+
collection: .*
permission: r
# Give write access to owners
[owner-write]
user: .+
collection: ^%(login)s/.*$
permission: w
Git Support Git Support