Return to

Security-wise Publish Item Command

If the workflow concept cannot be applied to your solution for some reason and you want to allow item publishing only when a user has write access for these items, consider the following steps to be completed. 

1. Restrict publishing on UI basis.

Since there is no publish right in Sitecore V5 any more, you need to restrict user access to publishing functionality on UI basis:

  1. Deny read rights for the Publish button in the start bottom menu.
    You should operate with the core database on this step.

    /upload/sdn5/articles 2/security/security-wise publish item command/security_wise1.png

    The result is shown below:

    /upload/sdn5/articles 2/security/security-wise publish item command/security_wise2.png
  2.  Then you should disable publishing from the Content Editor.
    Open the Security Editor in the core database and make the following changes:

    /upload/sdn5/articles 2/security/security-wise publish item command/security_wise3.png

    The result is depicted below: 

    /upload/sdn5/articles 2/security/security-wise publish item command/security_wise4.png

2. Add a security wise publish item command.

  1. Switch to the core database.

  2. Locate the /content/system/commands folder and create a new command here. The easiest way is to duplicate an existing command.

  3. Fill all the fields of the new command as shown below:

    /upload/sdn5/articles 2/security/security-wise publish item command/security_wise5.png

    The key thing is to set the Require write checkbox so this command will be visible only when item can be modified by the context user:

    /upload/sdn5/articles 2/security/security-wise publish item command/security_wise6.png
  4. Add this command to the commands multilist of the /content/system/shell/__default/commands item: 

    /upload/sdn5/articles 2/security/security-wise publish item command/securiy_wise7.png


The Document item can be edited by the context user while the Press Releases item cannot. The result is shown below:

/upload/sdn5/articles 2/security/security-wise publish item command/security_wise8.jpg