Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 KB | None | 0 0
  1. -
  2. type: content
  3. mode: create
  4. content_type: folder
  5. main_location: 2
  6. priority: 0
  7. attributes:
  8. - name: Sites
  9. references:
  10. -
  11. identifier: sites_folder_locationid
  12. attribute: location_id
  13. -
  14. type: role
  15. mode: create
  16. name: Site Owner
  17. policies:
  18. -
  19. module: content
  20. function: read
  21. limitations:
  22. -
  23. identifier: Node
  24. values: [1, 2, "reference:sites_folder_locationid"]
  25. -
  26. module: content
  27. function: read
  28. limitations:
  29. -
  30. identifier: Subtree
  31. values: [/1/43/, /1/5/] # media and users
  32. -
  33. module: content
  34. function: read
  35. limitations:
  36. -
  37. identifier: Owner # view own items in trash
  38. values: [1]
  39. -
  40. type: user_group
  41. mode: create
  42. parent_group_id: 4
  43. name: Site Owners
  44. description: Site Owners
  45. roles: ["Site Owner"]
  46. references:
  47. -
  48. identifier: site_owners_group_id
  49. attribute: id
  50. -
  51. type: user
  52. mode: create
  53. first_name: test
  54. last_name: editor
  55. username: site1
  56. email: site1@example.com
  57. password: password
  58. groups: ["reference:site_owners_group_id"]
  59. references:
  60. -
  61. identifier: site1_user_id
  62. attribute: user_id
  63. -
  64. type: content
  65. mode: create
  66. content_type: folder
  67. main_location: "reference:sites_folder_locationid"
  68. priority: 0
  69. attributes:
  70. - name: Site 1
  71. references:
  72. -
  73. identifier: site1_folder_path
  74. attribute: path
  75. -
  76. type: role
  77. mode: update
  78. name: Editor
  79. assign:
  80. -
  81. type: user
  82. ids: ["reference:site1_user_id"]
  83. limitations:
  84. -
  85. identifier: Subtree
  86. values: ["reference:site1_folder_path"]
  87. -
  88. type: user
  89. mode: create
  90. first_name: test
  91. last_name: editor
  92. username: site2
  93. email: site2@example.com
  94. password: password
  95. groups: ["reference:site_owners_group_id"]
  96. references:
  97. -
  98. identifier: site2_user_id
  99. attribute: user_id
  100. -
  101. type: content
  102. mode: create
  103. content_type: folder
  104. main_location: "reference:sites_folder_locationid"
  105. priority: 0
  106. attributes:
  107. - name: Site 2
  108. references:
  109. -
  110. identifier: site2_folder_path
  111. attribute: path
  112. -
  113. type: role
  114. mode: update
  115. name: Editor
  116. assign:
  117. -
  118. type: user
  119. ids: ["reference:site2_user_id"]
  120. limitations:
  121. -
  122. identifier: Subtree
  123. values: ["reference:site2_folder_path"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement