This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Setup & design » Editor Role - can't create anything
expandshrink

Editor Role - can't create anything

Editor Role - can't create anything

Saturday 16 July 2011 6:40:31 pm - 9 replies

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?

Modified on Saturday 16 July 2011 6:51:21 pm by Tikhon Osipov

Saturday 16 July 2011 7:00:48 pm

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.

Saturday 16 July 2011 7:12:13 pm

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

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

Saturday 16 July 2011 7:12:38 pm

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.

Saturday 16 July 2011 7:13:11 pm

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

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

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

Saturday 16 July 2011 7:17:48 pm

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

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

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

I am pretty sure that is the solution for you because it was for me and I had the same problem blunk.gif Emoticon

Saturday 16 July 2011 7:41:45 pm

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

I see .ctpl extension for the first time.

Modified on Saturday 16 July 2011 7:42:06 pm by Tikhon Osipov

Monday 18 July 2011 10: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

Monday 18 July 2011 10: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 happy.gif Emoticon

Wednesday 20 July 2011 12:36:47 am

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

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from