Is there a way to prevent users from seeing pages in draft?

Patrick Illian July 16, 2012

My company is using Ad hoc workflows to approve pages in confluence. Currently, if a page is in draft only admins, authors and approvers can see it. Once it's published, all users can see the page. If that page is edited or rejected back into a draft state, users still see the page as was when it was published previously.

If a page is published and then put back into draft, can we prevent users from seeing the previously published page and make them see nothing instead.

The company I work for just wants to make sure that users aren't seeing outdated/incorrect information.

1 answer

1 accepted

3 votes
Answer accepted
Miguel Reimer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 16, 2012

Hi Patrick,

You can add a trigger on the state change to Draft to add a view restriction to limit the users that can view the page. For example:

{trigger:statechanged|state=Draft}
   {add-restriction:type=View|user=username}
{trigger}
{trigger:statechanged|state=Published}
{remove-restriction:type=View}
{trigger}

For adding restrictions you can have as many groups or users as you want in one macro, just separate the list items with a comma. Just make sure to include everyone who you want to still be able to see and approve the drafts.

The remove-restriction as above, will remove all view restrictions so if you have other view restrictions on the page added outside of Ad hoc Workflows, you will want to use {add-restriction} to add them back in.

For more information about {add-restriction} please see http://www.adhocworkflows.com/display/AWP/add-restriction+macro and for {remove-restriction}, please see http://www.adhocworkflows.com/display/AWP/remove-restriction+macro

Thanks,
Miguel

Patrick Illian July 16, 2012

Awesome, this helps a lot, thank you!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events