rights 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. #
  12. # The first rule matching both user and collection patterns will be returned.
  13. # This means all users starting with "admin" may read any collection
  14. [admin]
  15. user: admin.*
  16. collection: .*
  17. permission: r
  18. # This means all users may read and write any collection starting with public.
  19. # We do so by just not testing against the user string.
  20. [public]
  21. user: .*
  22. collection: public(/.+)?
  23. permission: rw
  24. # A little more complex: give read access to users from a domain for all
  25. # collections of all the users (ie. user@domain.tld can read domain/*).
  26. [domain-wide-access]
  27. user: .+@(.+)\..+
  28. collection: {0}/.+
  29. permission: r
  30. # Allow authenticated user to read all collections
  31. [allow-everyone-read]
  32. user: .+
  33. collection: .*
  34. permission: r
  35. # Give write access to owners
  36. [owner-write]
  37. user: .+
  38. collection: %(login)s/.*
  39. permission: w