Loading...
 
Skip to main content

History: Sample_for_Perms_Auditing

Source of version: 38 (current)

Copy to clipboard
            {CODE(caption=>YAML)}
preferences:
 feature_wiki: y
 feature_categories: y
 feature_blogs: y
 feature_forums: y
 feature_file_galleries: y
 feature_trackers: y
objects:
 -
  type: category
  ref: cat_a
  data:
   name: A
   items:
    - [ forum, $ob2 ]
    - [ blog, $ob1 ]
    - [ tracker, $ob4 ]
 -
  type: category
  ref: cat_b
  data:
   name: B
   items:
    - [ blog, $ob1 ]
    - [ file_gallery, $ob3 ]
    - [ tracker, $ob4 ]
 -
  type: category
  ref: cat_c
  data:
   name: C
   items:
    - [ file_gallery, $ob3 ]
    - [ forum, $ob2 ]
 -
  type: blog
  ref: ob1
  data:
   title: Bloggie
 -
  type: forum
  ref: ob2
  data:
   name: Forex
 -
  type: file_gallery
  ref: ob3
  data:
   name: Filig
 -
  type: tracker
  ref: ob4
  data:
   name: Treeky
   description: Simple Bug Tracker
   default_status: open
   show: [ status, creation_date, modification_date, list_modification_date ]
   allow: [ comments ]
 -
  type: users
  data:
   - 
    name: aldo
    groups: [ A ]
   -
    name: ben
    groups: [ B ]
   -
    name: lph
    groups: [ C ]
   -
    name: marc
    groups: [ Masters ]
permissions:
 Registered:
  allow: [ read_blog, forum_read, list_trackers, view_trackers, view_fgal_explorer, view_file_gallery, list_file_galleries ]
 A:
  include: [ Registered ]
  objects:
   -
    type: category
    id: $cat_a
    allow: [ read_blog, forum_read, forum_post_topic, forum_post, list_trackers, modify_tracker_items, create_tracker_items, view_trackers ]
 B:
  include: [ Registered ]
  objects:
   -
    type: category
    id: $cat_b
    allow: [ read_blog, blog_post, download_files, list_trackers, view_trackers ]
 C:
  include: [ Registered ]
  objects:
   -
    type: category
    id: $cat_c
    allow: [ upload_files, edit_gallery_file, view_fgal_explorer, view_file_gallery, list_file_galleries, forum_read, forum_post ]
 Masters:
  include: [ Registered ]
  objects:
   -
    type: category
    id: $cat_a
    allow: [ read_blog, forum_read, forum_post_topic, forum_post, list_trackers, modify_tracker_items, create_tracker_items, view_trackers ]
   -
    type: category
    id: $cat_b
    allow: [ read_blog, blog_post, download_files, list_trackers, view_trackers ]
   -
    type: category
    id: $cat_c
    allow: [ upload_files, edit_gallery_file, view_fgal_explorer, view_file_gallery, list_file_galleries, forum_read, forum_post ]
{CODE}
        
Collapse/expand modules below