rights 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. # -*- mode: conf -*-
  2. # vim:ft=cfg
  3. # Rights management file for Radicale - A simple calendar server
  4. #
  5. # The default path for this file is /etc/radicale/rights
  6. # The path can be specified in the rights section of the configuration file
  7. #
  8. # Section names are used for naming rules and must be unique.
  9. # The first rule matching both user and collection patterns will be used.
  10. # Example: owner_only plugin
  11. # Allow reading root collection for authenticated users
  12. #[root]
  13. #user: .+
  14. #collection:
  15. #permissions: R
  16. # Allow reading and writing principal collection (same as user name)
  17. #[principal]
  18. #user: .+
  19. #collection: {user}
  20. #permissions: RW
  21. # Allow reading and writing calendars and address books that are direct
  22. # children of the principal collection
  23. #[calendars]
  24. #user: .+
  25. #collection: {user}/[^/]+
  26. #permissions: rw
  27. # Example: owner_write plugin
  28. # Only listed additional rules for the owner_only plugin example.
  29. # Allow reading principal collections of all users
  30. #[read-all-principals]
  31. #user: .+
  32. #collection: [^/]+
  33. #permissions: R
  34. # Allow reading all calendars and address books that are direct children of any
  35. # principal collection
  36. #[read-all-calendars]
  37. #user: .+
  38. #collection: [^/]+/[^/]+
  39. #permissions: r
  40. # Example: authenticated plugin
  41. # Allow reading and writing root and principal collections of all users
  42. #[root-and-principals]
  43. #user: .+
  44. #collection: [^/]*
  45. #permissions: RW
  46. # Allow reading and writing all calendars and address books that are direct
  47. # children of any principal collection
  48. #[calendars]
  49. #user: .+
  50. #collection: [^/]+/[^/]+
  51. #permissions: rw
  52. # Example: Allow user "admin" to read everything
  53. #[admin-read-all]
  54. #user: admin
  55. #collection: .*
  56. #permissions: Rr
  57. # Example: Allow everybody (including unauthenticated users) to read
  58. # the collection "public"
  59. # Allow reading collection "public" for authenticated users
  60. #[public-principal]
  61. #user: .+
  62. #collection: public
  63. #permissions: R
  64. # Allow reading all calendars and address books that are direct children of
  65. # the collection "public" for authenticated users
  66. #[public-calendars]
  67. #user: .+
  68. #collection: public/[^/]+
  69. #permissions: r
  70. # Allow access to public calendars and address books via HTTP GET for everyone
  71. #[public-calendars-restricted]
  72. #user: .*
  73. #collection: public/[^/]+
  74. #permissions: i
  75. # Example: Grant users of the form user@domain.tld read access to the
  76. # collection "domain.tld"
  77. # Allow reading the domain collection
  78. #[read-domain-principal]
  79. #user: .+@([^@]+)
  80. #collection: {0}
  81. #permissions: R
  82. # Allow reading all calendars and address books that are direct children of
  83. # the domain collection
  84. #[read-domain-calendars]
  85. #user: .+@([^@]+)
  86. #collection: {0}/[^/]+
  87. #permissions: r