rights 3.3 KB

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