Pages

Showing posts with label Unlock. Show all posts
Showing posts with label Unlock. Show all posts

01 August, 2016

Sitecore – Unlock locked item by non-admins

This is a very simple module that will help the non-admin content authors to unlock the locked items. The user has to be in a defined role to access this module.
  • A button called Unlock will be added to Publish chunk.
  • Add the Content admin who needs access to unlock item to the role - SitecoreContentAuthorUnlock
  • To unlock, content admin can click the Unlock button for locked item and item will be unlocked. 
Package will install these items
  • An assembly
  • Sitecore role – “SitecoreContentAuthorUnlock”
  • Configuration file in Includes folder
  • Button in Publish chunk (core item)
You can download the Sitecore package here and install it using Installation Wizard.

    06 August, 2014

    Unlocking Sitecore items leads to Anonymous Update

    In Sitecore 6.6, if a content author unlocks his locked Sitecore items (using Review / My Items command), Sitecore executes a job and unlocks the items. When it unlocks, it also updates the item’s modified details with anonymous user.

    Below item was modified by a test user using Lock and Edit.


    Once user unlock the item using Sitecore unlock feature, the item will be updated by anonymous user. 


    Sitecore support team has acknowledged this as a bug (#416532) and have provided a fix.

    - Place the assembly in the bin folder. 

    - Replace the following lines in your Website/App_Config/Commands.config file:

       <!-- <command name="webedit:unlock" type="Sitecore.Shell.Applications.WebEdit.Commands.Unlock,Sitecore.Client"/>-->
       <!-- <command name="webedit:unlockall" type="Sitecore.Shell.Applications.WebEdit.Commands.UnlockAll,Sitecore.Client"/>-->
       <command name="webedit:unlock" type="Sitecore.Support.Shell.Applications.WebEdit.Commands.Unlock, Sitecore.Support.338528"/>
       <command name="webedit:unlockall" type="Sitecore.Support.Shell.Applications.WebEdit.Commands.UnlockAll, Sitecore.Support.338528"/>
    blockquote { margin: 0; } blockquote p { padding: 15px; background: #eee; border-radius: 5px; } blockquote p::before { content: '\201C'; } blockquote p::after { content: '\201D'; }