Désactivation versioning et approbation

More
11 years 5 months ago #37688 by ggppdk
Hello,
this plugin will prevent all users from publishing the item, even the super Administrator,
e.g. when you as super Administrator , you edit an item and save it , then it will be immediately unpublished

-- this problem will be in item form and in import view , etc ... so you should check if current user is allowed to publish the item
-- but it should be possible to publish the item via backend items manager "publish" (state change) button


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
11 years 5 months ago #37692 by seabird
Hello,

I restrict the plugin only for the frontend.
In the backend, the plugin does not run.
So there is no problem if we connect to the backend

Eric

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

More
11 years 5 months ago #37693 by ggppdk
Also a check of publish privilege at the top of the function would make it work properly:
Code:
$user = JFactory::getUser(); $asset = 'com_content.article.'.$item->id; if ( $user->authorise('core.edit', $asset) || ($user->authorise('core.edit.own', $asset) && $user->get('id') == $item->created_by) ) return;


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
11 years 5 months ago #37694 by seabird
Yes of course, it is more correct to consider ACL.

Thanks

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.445 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