rights 917 B

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