Page Restrictions Workflow Example

  • When a page gets created, it can be read only by the creator and by the members of the moderators group
  • When a page gets updated after it has been approved, then only the editor and members of the moderators group can edit it.
  • When a page gets approved all the viewing and editing restrictions are removed
{workflow}
    {approval:Approval}
    {trigger:pagecreated}
        {set-message}Page restricted for view{set-message}
        {add-restriction:type=View|user=@user@}
        {add-restriction:type=View|group=moderators}
    {trigger}

    {trigger:pageupdated|hasapproval=Approval}
        {set-message}Page is being updated{set-message}
        {remove-restriction:type=View}
        {add-restriction:type=Edit|user=@user@}
        {add-restriction:type=Edit|group=moderators}
    {trigger}

    {trigger:pageapproved|approval=Approval}
        {set-message}Page approved{set-message}
        {remove-restriction:type=View}
        {remove-restriction:type=Edit}
    {trigger}
{workflow}

Labels

comalatech comalatech Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.