Forums / Developer / Restricting User to Publish...

Restricting User to Publish...

Author Message

Sandeep Kadam

Monday 12 July 2010 6:05:00 am

Hello All,

In my site, I have two users one Editor and one Admin.
Editor can only Create a page or modify the existing page but he should not be able to publish that changes or edits. And only admin can approve and publish that changes after checking it from his drafts.
so can any one help me in setting or restincting editor from publishing.

Thanks,
Sandeep Kadam

Ivo Lukac

Monday 12 July 2010 9:25:00 am

There is a default approval workflow (http://ez.no/doc/ez_publish/technical_manual/4_x/reference/workflow_events/approve) and some custom ones (on projects.ez.no) for this.

But I would suggest to use content object states, it is simpler to manage and easily implement. Though, can't find any documentation for it currently...

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Peter Keung

Monday 12 July 2010 10:14:07 am

Here's an article on object states:

http://share.ez.no/articles/ez-publish/ez-publish-knowledge-series-editorial-workflow-with-object-states

http://www.mugo.ca
Mugo Web, eZ Partner in Vancouver, Canada

Ivo Lukac

Tuesday 13 July 2010 1:42:12 am

Ah, excellent, thanks :)

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

FX Ratnam

Monday 25 October 2010 6:20:49 am

Hi,

I need to select people to valid publish workflow instead of groups. But we cannot do that with ezPublish default settings.

Could you tell me if we could change this settings please ?

Sorry for my bad english... Thanks

Best regards,

Fx

Nicolas Pastorino

Monday 25 October 2010 10:10:26 am

Hi FX,

You want to have one person validating publication instead of a group, this in the context of an approval workflow. Just making sure we understand properly.

Let us know,
Cheers

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

eZ debug

Timing: Jan 31 2025 00:35:30
Script start
Timing: Jan 31 2025 00:35:30
Module start 'content'
Timing: Jan 31 2025 00:35:30
Module end 'content'
Timing: Jan 31 2025 00:35:30
Script end

Main resources:

Total runtime0.3065 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0101 587.9297370.2969
Module start 'content' 0.01010.0246 958.22661,009.6094
Module end 'content' 0.03470.2717 1,967.83593,898.1875
Script end 0.3064  5,866.0234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00501.6364200.0003
Check MTime0.00160.5162200.0001
Mysql Total
Database connection0.00130.418910.0013
Mysqli_queries0.171055.79511410.0012
Looping result0.00200.65021390.0000
Template Total0.271188.510.2711
Template load0.00100.314510.0010
Template processing0.270188.146510.2701
Override
Cache load0.00060.209110.0006
Sytem overhead
Fetch class attribute can translate value0.00200.657810.0020
XML
Image XML parsing0.00030.091710.0003
General
dbfile0.02718.8392200.0014
String conversion0.00000.001630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs