Can't unlock item when canceling edit

More
13 years 6 months ago #11126 by jfe
Hello,

Using FLEXIcontent version 1.5.3c stable (r354),

I do the following:
1 - edit an item with user A
2 - cancel the edition
3 - try to edit the item with user B

Problem: the item is still locked.

Looking at the code, I think it can be fixed by changing line:
Code:
if ($user->authorize('com_flexicontent', 'edit') || $user->authorize('com_flexicontent', 'edit', 'own')) {
by
Code:
if ($user->authorize('com_content', 'edit', 'content', 'all') || $user->authorize('com_content', 'edit', 'content', 'own')) {
in file components/com_flexicontent/controller.php line 301.

So far it works for me.

Does this fix look ok to you?

Regards.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.253 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline