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