rights 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # -*- mode: conf -*-
  2. # vim:ft=cfg
  3. # Rights management file for Radicale - A simple calendar server
  4. #
  5. # The default path for this kind of files is ~/.config/radicale/rights
  6. # This can be changed in the configuration file
  7. #
  8. # This file gives independant examples to help users write their own
  9. # configuration files. Using these examples together in the same configuration
  10. # file is meaningless.
  11. # This means all users starting with "admin" may read any collection
  12. [admin]
  13. user: ^admin.*$
  14. collection: .*
  15. permission: r
  16. # This means all users may read and write any collection starting with public.
  17. # We do so by just not testing against the user string.
  18. [public]
  19. user: .*
  20. collection: ^public(/.+)?$
  21. permission: rw
  22. # A little more complex: give read access to users from a domain for all
  23. # collections of all the users (ie. user@domain.tld can read domain/*).
  24. [domain-wide-access]
  25. user: ^.+@(.+)\..+$
  26. collection: ^{0}/.+$
  27. permission: r
  28. # Allow authenticated user to read all collections
  29. [allow-everyone-read]
  30. user: .+
  31. collection: .*
  32. permission: r
  33. # Give write access to owners
  34. [owner-write]
  35. user: .+
  36. collection: ^%(login)s/.*$
  37. permission: w