plone / Products.CMFPlone

The core of the Plone content management system
https://plone.org
GNU General Public License v2.0
254 stars 191 forks source link

Edit action missing from toolbar when object is locked #3674

Closed MrTango closed 11 months ago

MrTango commented 2 years ago

BUG/PROBLEM REPORT (OR OTHER COMMON ISSUE)

What I did:

Tried to edit an object, for which another user had the edit form open.

What I expect to happen:

A message which tells me that the object is locked, because somebody is currently editing it. An action to unlock it.

What actually happened:

Edit action is missing from toolbar.

What version of Plone/ Addons I am using:

6.0.0b3

laulaz commented 1 year ago

@MrTango IMHO it is good that the Edit action is removed on locked item, because you have the clear warning on the View :

capture

Perhaps I didn't understand the place you are in the site to "miss" this warning (?), IOW from where you are trying to edit the content. Can you tell me more about this ? because we need to work on another locking issue 😉

petschki commented 1 year ago

I would say this is a feature not a bug. You get warned and if you are allowed you can unlock and edit the page. Thats the intended behavior.

MrTango commented 11 months ago

you are right, the problem here was, that the message was missing because it is rendered in a separate part of the template, not like other portal messages and my Diazo config was missing this. Now it is clear ;).