Forums / Developer / Registered users can't edit/view their account

Registered users can't edit/view their account

Author Message

Adolfo Barragán

Wednesday 22 October 2003 5:06:00 am

I have problems with user's accounts, they can't access to their accounts.

I have read many of forum messages about user selfedit and roles, specially the trhead http://ez.no/developer/ez_publish_3/forum/developer/allowing_users_to_edit_their_own_details_with_selfedit_how_does_it_work but the problem continue. (I'm using ezpublish 3.2-2, but I don't change register.php)

My registered users must have access to edit/view their account (Owner: Self) and also they can create a class (announcement), and they can edit/remove announcements but only if the user is the owner of the object. Also, they must have anonymous access.

I have create a Role: *Registered_Users* and I set its policy as follow:

user * *
form * *
content read Class(...) --some classes, not User nor UserGroup
content read Class(UserGroup) Section(Users)
content read Class(User) Section(Users) Owner(Self)
content create Class(Announcement) Section(Announcements) ParentClass(Board)
content edit Class(Announcement, User) Owner(Self)
content remove Class(Announcement) Owner(Self)

I assigned the user group "Guest Accounts" to role "Registered Users".

With this set up, I can login and logout, and I can also create announcements and edit only "my" announcements, but if I try view "my account" I receive and 'access denied' error.

How can I solve this problem?

Thanks in advance.
Adolfo Barragán