Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -
- type: content
- mode: create
- content_type: folder
- main_location: 2
- priority: 0
- attributes:
- - name: Sites
- references:
- -
- identifier: sites_folder_locationid
- attribute: location_id
- -
- type: role
- mode: create
- name: Site Owner
- policies:
- -
- module: content
- function: read
- limitations:
- -
- identifier: Node
- values: [1, 2, "reference:sites_folder_locationid"]
- -
- module: content
- function: read
- limitations:
- -
- identifier: Subtree
- values: [/1/43/, /1/5/] # media and users
- -
- module: content
- function: read
- limitations:
- -
- identifier: Owner # view own items in trash
- values: [1]
- -
- type: user_group
- mode: create
- parent_group_id: 4
- name: Site Owners
- description: Site Owners
- roles: ["Site Owner"]
- references:
- -
- identifier: site_owners_group_id
- attribute: id
- -
- type: user
- mode: create
- first_name: test
- last_name: editor
- username: site1
- email: site1@example.com
- password: password
- groups: ["reference:site_owners_group_id"]
- references:
- -
- identifier: site1_user_id
- attribute: user_id
- -
- type: content
- mode: create
- content_type: folder
- main_location: "reference:sites_folder_locationid"
- priority: 0
- attributes:
- - name: Site 1
- references:
- -
- identifier: site1_folder_path
- attribute: path
- -
- type: role
- mode: update
- name: Editor
- assign:
- -
- type: user
- ids: ["reference:site1_user_id"]
- limitations:
- -
- identifier: Subtree
- values: ["reference:site1_folder_path"]
- -
- type: user
- mode: create
- first_name: test
- last_name: editor
- username: site2
- email: site2@example.com
- password: password
- groups: ["reference:site_owners_group_id"]
- references:
- -
- identifier: site2_user_id
- attribute: user_id
- -
- type: content
- mode: create
- content_type: folder
- main_location: "reference:sites_folder_locationid"
- priority: 0
- attributes:
- - name: Site 2
- references:
- -
- identifier: site2_folder_path
- attribute: path
- -
- type: role
- mode: update
- name: Editor
- assign:
- -
- type: user
- ids: ["reference:site2_user_id"]
- limitations:
- -
- identifier: Subtree
- values: ["reference:site2_folder_path"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement