Using a local-role adapter, I can't let my custom content type be displayed in the "folderlisting" macro of the base_view of its parent container.

My settings:

I have:
- a user (MyUser) with "Member" role
- 2 custom content types and 2 items based on them in a portal: MyOrganizationFolder that contains MyOrganization - MyOrganizationFolder users the simple workflow and is in the published state - MyOrganization uses a custom organization_workflow that makes the "OrganizationMember" local role required for access, list and view permissions to be granted to the user - a custom localrole adapter based on the new borg.localrole stuff included in Plone ; this adapter gives the 'OrganizationMember' role to MyUser on MyOrganization

MyUser is then able to see (base_view) MyOrganizationFolder as well as MyOrganization. It can also list the contents of MyOrganization. But the MyOrganizationFolder base_view does not display MyOrganization in its "folderlisting" part.

It is "as if" the folderlisting macro of MyOrganizationFolder did not check for adapter-based local roles of the user when checking the granting of the "access" (and/or "view") permission on contained items and thus concluded this MyOrganization item should not appear in the list because MyUser has no static 'OrganizationMember' role.

What am I missing here?

How can I debug/trace this kind of situation (there is no UnAuthorized error being raised here)?

Should I recheck once again my settings (I lost several hours trying to double/triple-checks things but I may still have to check once again...)?

-- Sig

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to