# Rights management file for Radicale - A simple calendar server
#
# Section names are used for naming rules and must be unique.
# First rule matching both user and collection patterns will be used.

# Allow reading root collection for authenticated users
[root]
user: .+
collection:
permissions: R

# Allow reading and writing principal collection
# (same as user name)
[principal]
user: .+
collection: {user}
permissions: RW

# Allow reading and writing calendars and address books
# that are direct children of the principal collection
[calendars]
user: .+
collection: {user}/[^/]+
permissions: rw
