Roles and list of classes in the contextual menu

Author Message

Pascal France

Friday 30 April 2010 4:13:20 pm

Hi,

When we define a role which restricts the classes that can be used, the drop down menu in the Sub-elements frame takes into account only these classes.

But the list of the classes in the contextual menu continues to present all the classes available on the system.

Is not there any way that the contextual menu also takes into account only classes defined by the role?

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Jérôme Vieilledent

Saturday 01 May 2010 2:32:52 am

Hi Pascal

Unfortunately this is not currently possible :(. I just checked in design/admin2/templates/contentstructuremenu/content_structure_menu_dynamic.tpl and it actually just excludes some content classes. Besides, it seems that (undocumented) fetch function - class/list_by_groups - used in that template to list possible classes does not check security policies (eZClassFunctionCollection::fetchClassListByGroups()).

This would be really nice to get that feature IMHO :). Would you mind add a new enhancement issue on issues.ez.no ?

Pascal France

Saturday 01 May 2010 6:26:28 am

Hi Jérôme,

It's done.

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Jérôme Vieilledent

Saturday 01 May 2010 7:02:22 am

Thank you Pascal ! :)

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