Tuesday 14 June 2011 12:42:42 am
I've just tried this in the latest version (eZ Publish Community 2011.5) and it makes matters even worse! Using a user account that can create content (it has the 'Editor' role), the 'Create Here' menu ends up with no items. Also, the 'Create New' drop-down menu is empty too. But if I add a policy 'content/create/*' to the role, both these menus get fully populated. It seems that the following fetch in children_detailed.tpl is the culprit:
{def $can_create_classes = fetch( 'content', 'can_instantiate_class_list', hash( 'parent_node', $node,
'filter_type', 'exclude',
'group_id', $group_id,
'group_by_class_group', true() ) )} If the user has the policy 'content/create/*' then it returns a list of class groups, but if any other kind of content/create then it returns nothing! Any ideas? Is this a bug? How to fix it?
EAB - Integrated Internet Success
Offices in England, France & China.
http://www.eab.co.uk http://www.eab-china.com http://www.eab-france.com
|