Editor Role - can't create anything

Author Message

Tikhon Osipov

Saturday 16 July 2011 9:40:31 am

Hello! I've installed Community Project 2011.5 with EZFlow and have a problem with Editor user. When I log in as an editor with Editor role assigned, I can't create any child node - the "create" button is disabled.

Here is what Editor Role contains:

content bookmark No limitations
content create ParentClass( Banner )
content create Class( Folder , Article , Article (main-page) , Article (sub-page) , Blog , Product , Feedback form , Frontpage , Documentation page , Infobox , Multicalendar , Poll , File , Flash , Image , Link , Quicktime , Windows media , Real video , Gallery , Event calendar , Banner , Forums ) , ParentClass( Folder )
content create Class( Folder , Feedback form , Frontpage , Documentation page , Multicalendar , Link , Gallery , Event calendar , Forums ) , ParentClass( Frontpage )
content create Class( Blog post ) , ParentClass( Blog )
content create Class( Forum topic ) , ParentClass( Forum )
content create Class( Event ) , ParentClass( Event calendar )
content create Class( Image ) , ParentClass( Gallery )
content dashboard No limitations
content diff No limitations
content edit No limitations
content manage_locations No limitations
content pendinglist No limitations
content read Section( Standard , Media , Restricted )
content remove No limitations
content translate No limitations
content versionread No limitations
content versionremove No limitations
content view_embed No limitations
ezajax all functions No limitations
ezflow all functions No limitations
ezodf all functions No limitations
ezoe all functions No limitations
ezoe all functions No limitations
notification use No limitations
rss feed No limitations
user login No limitations
websitetoolbar use Class( Folder , Article , Article (main-page) , Article (sub-page) , Blog , Blog post , Product , Feedback form , Frontpage , Documentation page , Multicalendar , Poll , File , Flash , Image , Link , Quicktime , Windows media , Real video , Gallery , Forum , Event , Event calendar , Forums )

 

To solve that I had to add a new rule

content create No limitations

but I don't like that.

What can be the problem?

Peter Keung

Saturday 16 July 2011 10:00:48 am

You were trying to create a new node beneath content of which content class? The default rules are quite specific regarding what you are creating and where you are creating it.  Usually you'd just have to add another policy with an additional ParentClass limitation.

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

Ivo Lukac

Saturday 16 July 2011 10:12:13 am

It is a bug: http://issues.ez.no/IssueView.php?Id=18373

Patch is here: https://github.com/ezsystems/ezpublish/commit/637e3c0bc1a429af696800b68e4e752bf32ced9e

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

Tikhon Osipov

Saturday 16 July 2011 10:12:38 am

"

You were trying to create a new node beneath content of which content class? The default rules are quite specific regarding what you are creating and where you are creating it.  Usually you'd just have to add another policy with an additional ParentClass limitation.

"

None can be created - the "create new" button is gray and pop-up doesn't show.

It happens when I'm in a Frontpage (Home) or in a Folder - doesn't matter. Also it happens only when I logged in an administrative interface as an "editor" (a user with Editor Role, that I created). As Administrator User I can create any class available. But I'd like to restrict Editor user to create only specific class objects, as i suppose it should be.

Tikhon Osipov

Saturday 16 July 2011 10:13:11 am

Thank you very much. I'll look into it.

Ivo Lukac

Saturday 16 July 2011 10:17:48 am

I am pretty sure that is the solution for you because it was for me and I had the same problem ;)

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

Tikhon Osipov

Saturday 16 July 2011 10:41:45 am

Ivo Lukac, btw, do you know what templates/classcreatelist.ctpl is for?

I see .ctpl extension for the first time.

Niko Goers

Monday 18 July 2011 1:21:04 am

"

Ivo Lukac, btw, do you know what templates/classcreatelist.ctpl is for?

I see .ctpl extension for the first time.

"

Yes, that would be really interesting to know. And how is it possible to implement the patch correctly with the changes of the classcreatelist.ctpl file?

Cheers

Niko

eZ Publish partner - http://www.all2e.com
http://share.ez.no/directory/companies/all2e-gmbh
http://ez.no/Partners/all2e-GmbH

Lords of Heaven - http://www.LoH-Gilde.de (Created with eZ Publish)
German online gaming guild

About me - http://www.NikoGoers.de

My roadmap, +1 are welcome: http://share.ez.no/community/roadmap/10889

Ivo Lukac

Monday 18 July 2011 1:55:55 am

"
"

Ivo Lukac, btw, do you know what templates/classcreatelist.ctpl is for?

I see .ctpl extension for the first time.

"

Yes, that would be really interesting to know. And how is it possible to implement the patch correctly with the changes of the classcreatelist.ctpl file?

Cheers

Niko

"

Jerome should know the best :)

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

Niko Goers

Tuesday 19 July 2011 3:36:47 pm

Thanks to Jerome for answering to our question on Twitter.

FYI: http://twitter.com/#!/jvieilledent/status/93441927537623040

"

@NikoGoers @ilukac .ctpl stands for code template. It's old and for our build system. Git apply the patch, there is some --ignore option

"

Cheers

eZ Publish partner - http://www.all2e.com
http://share.ez.no/directory/companies/all2e-gmbh
http://ez.no/Partners/all2e-GmbH

Lords of Heaven - http://www.LoH-Gilde.de (Created with eZ Publish)
German online gaming guild

About me - http://www.NikoGoers.de

My roadmap, +1 are welcome: http://share.ez.no/community/roadmap/10889

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 01:13:35
Script start
Timing: Jan 18 2025 01:13:35
Module start 'layout'
Timing: Jan 18 2025 01:13:35
Module start 'content'
Timing: Jan 18 2025 01:13:36
Module end 'content'
Timing: Jan 18 2025 01:13:36
Script end

Main resources:

Total runtime1.2539 sec
Peak memory usage4,096.0000 KB
Database Queries89

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 587.9375152.6250
Module start 'layout' 0.00620.0027 740.562539.4531
Module start 'content' 0.00891.2435 780.0156819.2656
Module end 'content' 1.25240.0015 1,599.281332.1563
Script end 1.2539  1,631.4375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2795160.0002
Check MTime0.00150.1182160.0001
Mysql Total
Database connection0.00080.060810.0008
Mysqli_queries1.083286.3808890.0122
Looping result0.00090.0690870.0000
Template Total1.223197.520.6116
Template load0.00190.153320.0010
Template processing1.221297.387420.6106
Template load and register function0.00020.015910.0002
states
state_id_array0.00090.070710.0009
state_identifier_array0.00110.085720.0005
Override
Cache load0.00260.20402160.0000
Sytem overhead
Fetch class attribute can translate value0.00060.045440.0001
Fetch class attribute name0.00150.1200130.0001
XML
Image XML parsing0.00210.164640.0005
class_abstraction
Instantiating content class attribute0.00000.0039160.0000
General
dbfile0.00130.1028300.0000
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
10content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
24content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
30content/datatype/view/ezxmltags/tr.tpl<No override>extension/community/design/community/templates/content/datatype/view/ezxmltags/tr.tplEdit templateOverride template
54content/datatype/view/ezxmltags/td.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/td.tplEdit templateOverride template
25content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
2content/datatype/view/ezxmltags/table.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/table.tplEdit templateOverride template
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
10content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
8content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 171
 Number of unique templates used: 11

Time used to render debug report: 0.0001 secs