+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / admin not able to unlock items locked by other user

admin not able to unlock items locked by other user

9 posts, 0 answered
  1. kamii47
    kamii47 avatar
    71 posts
    Registered:
    02 Mar 2007
    10 Jul 2014
    Link to this post

    I have multiple dynamic module items in my sitefinity 6.3 solution. 

    I have “Unlock” issue is happening on all the Custom module  i.e. only the user who Locked the content can only Unlock it, where as it should allow Administrator to unlock any content.

    Also my all users are in administrator role. Is there any problem of content of one admin role user with other?

    Like for instance I am logged in with admin user and try to click one item and get message like

    "The item has been locked by ABCUser since 24/6/2014 13:16:46.Press OK to close the dialog." 

    Please let me know how to overcome this issue

  2. Ivan D. Dimitrov
    Ivan D. Dimitrov avatar
    310 posts
    Registered:
    26 Mar 2015
    14 Jul 2014
    Link to this post
    Hi Kamran,

    This is indeed strange. In general Admin users can unlock all content, no matter what role locked it in the first place. I suspect the issue is permission based. Can you confirm that you do not have any permissions set on a user base - meaning user A is admin, but content permissions deny the user access to a certain module?

    Regards,
    Ivan D. Dimitrov
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. kamii47
    kamii47 avatar
    71 posts
    Registered:
    02 Mar 2007
    14 Jul 2014 in reply to Ivan D. Dimitrov
    Link to this post

    Hi Ivan,

    I don't remember i have put any permission restriction on particular user.I have simply a user with username Admin [from which mainly installation is done].
    Then I have another user with name AlternativeAdmin which has same permission as of Admin user .[administrator role, back-end access e.t.c]
    Could i have some sort of query which i can ran in my database for both user to check if there is any sort of permission difference as from Users dashboard i can't find any difference in both of them 

    Thanks a lot for your's time.

  4. Ivan D. Dimitrov
    Ivan D. Dimitrov avatar
    310 posts
    Registered:
    26 Mar 2015
    17 Jul 2014
    Link to this post
    Hi Karman,

    I believe this behavior requires some in depth investigation and this forum is not suitable. I can advise you submit a support ticket where me or one of my teammates can look into the issue in further detail. This may involve you providing credentials for the solution or the solution itself, therefore I advise you do not continue the matter in a public forum.

    Regards,
    Ivan D. Dimitrov
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  5. kamii47
    kamii47 avatar
    71 posts
    Registered:
    02 Mar 2007
    17 Jul 2014 in reply to Ivan D. Dimitrov
    Link to this post

    Ok Ivan though I always preferred posting on public forums as the resolution might help other's who are facing similar problem.

  6. Ivan D. Dimitrov
    Ivan D. Dimitrov avatar
    310 posts
    Registered:
    26 Mar 2015
    21 Jul 2014
    Link to this post
    Hi Kamran,

    I agree with you on this matter. The ticket will simply protect your personal information. Once the issue is resolved, feel free to post all your findings here for the rest of the community to view.

    Regards,
    Ivan D. Dimitrov
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  7. kamii47
    kamii47 avatar
    71 posts
    Registered:
    02 Mar 2007
    21 Jul 2014 in reply to Ivan D. Dimitrov
    Link to this post

    Thanks Ivan

  8. Katrien
    Katrien avatar
    4 posts
    Registered:
    06 Oct 2011
    28 Sep 2015
    Link to this post

    Did you manage to find a solution for this problem? I have the same issue with my content blocks. I also have an admin account. In pages, I can unlock every page. But in the content blocks module, I also get this popup without any option to unlock.
    The item has been locked by ABCUser since 24/6/2014 13:16:46.Press OK to close the dialog.

    Thanks for your reply.

  9. Stefani Tacheva
    Stefani Tacheva avatar
    718 posts
    Registered:
    09 Sep 2016
    30 Sep 2015
    Link to this post
    Hi,

    No one else has reported this problem. Is it an option for you to submit a support ticket with additional information about the problem and backend access so we can investigate this behavior further? Moreover could you please inform us what is the Sitefinity version you are using?

    You can programmatically unlock the content item using the sample below. Please have in mind that you need to modify the code to work with content blocks.

    var newsMan = NewsManager.GetManager();
    var newsItemMaster = newsMan.GetNewsItems().Where(n => n.Title == "test" && n.Status == ContentLifecycleStatus.Master).SingleOrDefault();
      
    newsMan.Lifecycle.DiscardAllTemps(newsItemMaster);
    newsMan.SaveChanges();

    Moreover, you should be logged in the backend as administrator. Further information regarding how to modify content blocks by code can be found in our Sitefinity documentation.

    Regards,
    Stefani Tacheva
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
9 posts, 0 answered