Loading...
 

Group_Transition_Demonstration

YAML
Instructions: Member List
preferences:
 feature_group_transition: y
 wikiplugin_memberlist: y
permissions:
 Candidate:
 Member:
  autojoin: y
 Suspended:
 Moderator:
  autojoin: y
  objects:
   -
    type: transition
    id: $approve
    allow: [ trigger_transition ]
   -
    type: transition
    id: $suspend
    allow: [ trigger_transition ]
   -
    type: transition
    id: $unsuspend
    allow: [ trigger_transition ]
 Lead:
  autojoin: y
  objects:
   -
    type: transition
    id: $promote_mod
    allow: [ trigger_transition ]
   -
    type: transition
    id: $promote_lead
    allow: [ trigger_transition ]
 Registered:
  allow: [ group_view, group_view_members ]
  objects:
   -
    type: group
    id: Candidate
    allow: [ group_join ]
objects:
 -
  type: wiki_page
  ref: list
  data:
   name: Member List
   content: "{memberlist groups=Candidate:Member:Suspended:Moderator:Lead}"
 -
  type: transition
  ref: approve
  data:
   type: group
   name: Accept
   from: Candidate
   to: Member
 -
  type: transition
  ref: suspend
  data:
   type: group
   name: Suspend
   from: Member
   to: Suspended
 -
  type: transition
  ref: unsuspend
  data:
   type: group
   name: Reintegrate
   from: Suspended
   to: Member
 -
  type: transition
  ref: promote_mod
  data:
   type: group
   name: Promote
   from: Member
   to: Moderator
   preserve: y
 -
  type: transition
  ref: promote_lead
  data:
   type: group
   name: Promote
   from: Moderator
   to: Lead
   preserve: y
 -
  type: users
  data:
   -
    name: bob
    groups: [ Candidate ]
   -
    name: albert
    groups: [ Candidate ]