Forums / Setup & design / Editor Role - can't create anything

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

eZ debug

Timing: Jan 17 2025 23:47:13
Script start
Timing: Jan 17 2025 23:47:13
Module start 'content'
Timing: Jan 17 2025 23:47:14
Module end 'content'
Timing: Jan 17 2025 23:47:14
Script end

Main resources:

Total runtime1.4235 sec
Peak memory usage4,096.0000 KB
Database Queries226

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 589.1641180.8359
Module start 'content' 0.00511.2583 770.0000824.3438
Module end 'content' 1.26340.1600 1,594.3438356.4609
Script end 1.4234  1,950.8047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.2780210.0002
Check MTime0.00140.1010210.0001
Mysql Total
Database connection0.00070.050110.0007
Mysqli_queries1.245087.46092260.0055
Looping result0.00250.17872240.0000
Template Total1.403198.620.7015
Template load0.00210.146720.0010
Template processing1.401098.420820.7005
Template load and register function0.00010.009310.0001
states
state_id_array0.00050.032910.0005
state_identifier_array0.00080.054020.0004
Override
Cache load0.00260.18382160.0000
Sytem overhead
Fetch class attribute can translate value0.00130.088250.0003
Fetch class attribute name0.00130.0919130.0001
XML
Image XML parsing0.00200.142050.0004
class_abstraction
Instantiating content class attribute0.00000.0025160.0000
General
dbfile0.00200.1407410.0000
String conversion0.00000.000330.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 171
 Number of unique templates used: 11

Time used to render debug report: 0.0002 secs