admin not able to unlock items locked by other user
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
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
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.
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
Ok Ivan though I always preferred posting on public forums as the resolution might help other's who are facing similar problem.
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
Thanks Ivan
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.
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();