Forums / Setup & design / 12 hrs and I get the idea! But permissions do not work

12 hrs and I get the idea! But permissions do not work

Author Message

Alan Sparkes

Monday 13 October 2003 9:29:49 am

I have been looking at Ezpub3.2 on Win XP .
I have added a user fred to editors role and setup workflow and trigers as suggested at sdk [http://pubsvn.ez.no/sdk/] There doesnt seem to be a big difference.

What I think I am doing is letting user 'fred' of editor group publish articles in Standard Section in the folder/node called news. I have gone thru SDK as suggested, assigned editor grp and fred as individual [is necessary?]

Problem:
Fred can read [cos i added read permission] but he cannot post an article. Settings are:

user login *
content read *
content create Class( Article ) , Section( Standard section )

Why cant Fred create articles?

alan

Marco Zinn

Monday 13 October 2003 11:10:37 am

Hi Alan,
hm, should work.
First: You should not need workflows and triggers in your case. Maybe you should disable this for now. If you assigned some workflow to the "publish" triggers, set them to "no workflow".
Workflows only work and progress, when you set up cron jobs (or run "runcronsjobs.php" manually). If you did not yet do that, you publishing worflow probably stucks somewhere.

If this does not work, change the last permission to "content create *"

You shouldn't need to assign the role to an indivual user, if you assign it to his group.

Marco
http://www.hyperroad-design.com

Frode Marton Meling

Tuesday 14 October 2003 1:38:29 am

PS! Remember that the user also needs edit rights!! The publishing in eZ Publish is done by redirecting. So when you create a new node (Pressing create), the node is created on the next web page and then automatically (instant) redirected to edit mode on that node.

Frode

Alan Sparkes

Tuesday 14 October 2003 12:42:04 pm

Quote:
You should not need workflows and triggers in your case

Mmm. I thought the idea of workflows was that editors could login, only see what you wanted them to see, and only submit for publishing those content objects setup in the workflow for the editors group.

I am testing EZPublish to see if it can allow an editor to log in and submit but not publish. And as far as I can tell, it doesnt work. I am using sepearate browsers [IE6 and Mozilla 1.4] in order to test this. I will try deleting the workflow and triggers to see if this allows Fred [see above] to submit.

If I am on the wrong track here with user submissions then please someone steer me in the right direction. Thank you...

alans

Alan Sparkes

Tuesday 14 October 2003 12:47:42 pm

If as I am trying to do create a user called fred who can submit articles should he login at the user site or the admin site?

alans

Paul Borgermans

Tuesday 14 October 2003 1:29:40 pm

The admin site is in fact the user side and reverse in the sense that they are both a "siteaccess" with a different "design".

The admin site is just a predefined siteaccess which lets you do a small part of ez functionality in a nice interface, geared towards admins.

What I do is let users have access to certain admin functions ... but they remain in the user siteaccess.

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Alan Sparkes

Tuesday 14 October 2003 1:40:40 pm

Ok I have taken workflow out, given fred create * * priveleges and he still can't create!

Has anyone else experienced this?

alan-s

PostNuke you are forgiven!!!

Paul Borgermans

Tuesday 14 October 2003 2:14:51 pm

Alan,

This is indeed not enough: you need to add an edit policy to the role:

content edit (Class Article), Section (Standard section)

A single edit policy is also not enough to create items, but this enables what it supposes to do: editing existing items.

Don't know to call this a feature or a bug :)

hth

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Paal Are Solberg

Wednesday 22 October 2003 12:13:21 pm

Remove this entry(see answers above)

eZ debug

Timing: Jan 18 2025 16:23:07
Script start
Timing: Jan 18 2025 16:23:07
Module start 'content'
Timing: Jan 18 2025 16:23:08
Module end 'content'
Timing: Jan 18 2025 16:23:08
Script end

Main resources:

Total runtime1.0172 sec
Peak memory usage4,096.0000 KB
Database Queries218

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 587.9531180.8125
Module start 'content' 0.00590.8824 768.7656717.4531
Module end 'content' 0.88830.1288 1,486.2188340.4141
Script end 1.0171  1,826.6328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.3821210.0002
Check MTime0.00140.1408210.0001
Mysql Total
Database connection0.00110.110710.0011
Mysqli_queries0.931791.59052180.0043
Looping result0.00210.20982160.0000
Template Total0.985796.920.4929
Template load0.00220.216320.0011
Template processing0.983596.688020.4918
Template load and register function0.00020.015810.0002
states
state_id_array0.00170.170710.0017
state_identifier_array0.00130.131420.0007
Override
Cache load0.00200.1924560.0000
Sytem overhead
Fetch class attribute can translate value0.00100.098660.0002
Fetch class attribute name0.00090.0934110.0001
XML
Image XML parsing0.00140.134360.0002
class_abstraction
Instantiating content class attribute0.00000.0041120.0000
General
dbfile0.00290.2856340.0001
String conversion0.00000.000630.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 30
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs