[EMAIL PROTECTED] escribió:
Hello,

I'm dealing with a META directory for the users of my portal (CPS 3.4.4) that takes the fields from two backing directories:

SQL directory schema (MySQL stores user info)

ZODB (roles and groups).

I've enabled joining the portal.

When I join the portal, the user i've created is in all the directories correctly. When I try to login with that user, the portal doesn't show any error, but neither let me enter to the portal.

This only happens when I try to join from anonymous, because the portal asign 'Member' role.

If I create a Manager user, he can enter the web correctly.

Anyone knows why?

It could happen that a user has no permissions to "see" its own resources (is not the owner of its own edirectory entry) when get access to the portal.

When you use Meta and backing directories, you have to specify the assingment of the role Owner for the directory entry that is needed when a user login the portal.

In each directory (meta and backing), in the tab "Entry Local Roles":
- create a new role "Owner" and write as "python: entry.get('id') == user_id" as condition
- 'id' needs to be the identity field for the entries

This will assign to the directory entry the role "Owner" for the corresponding user.

Hope this will work for you!
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

Reply via email to