user selfedit

Author Message

Andrew Kelly

Wednesday 12 April 2006 4:37:28 am

Dear all,

I am trying to perform the simple task of permitting users to edit their profile information from the public site access of my site. I've spent about the last 3 hours reading every post I could find and try every suggestion made on the topic, but so far no luck.

The general concensus seems to be simply
-- provide the user/selfedit role to the group in question
-- provide a link to /content/edit/<user_content_object_id>

This simply does not work, sorry. After adding the role user/password to my subscribers group, I have no problem with password changes from the "front end". But user/selfedit is not permitting access to profile editing as all the posts seem to say it should.

I'm not really even interested in allowing these users to change their whole profile. All I'm after is giving them the ability to change password and e-mail address from the public site access (front end).

Can somebody please tell me how this is done or point me to some clear documentation? I'd REALLY, REALLY appreciate it, and thank you greatly in advance.
(If your answer is "assign the user/selfedit role" don't bother posting, because it simply doesn't work).

Thanks in advance,

Andy

Pascal von Büren

Wednesday 12 April 2006 6:21:56 am

Hi Andrew

Do your users have the permission, to edit their own content objects?
Maybe you should grant <b>Content/edit</b> with limitation to Owner=Self to the specific user class.

Just a guess...

Andrew Kelly

Wednesday 12 April 2006 6:40:40 am

Hi Pascal,

Thanks for the suggestion. That's one of the many things that I tried and at which I failed.
Giving the user edit/self permissions won't work, becuase the user objects were created and are owned by the administrator user.

Andy

Betsy Gamrat

Wednesday 12 April 2006 8:27:10 am

Hi,

One option would be to create a new user class, with additional fields, and use those fields to populate the profile. That's probably a good starting point. Copy the existing user class and change it to suit your needs.

More complex options:

Would it be possible to change the ownership of the user object to itself?

I've never tried it, you may be able to create an event that fires after publish and changes the owner of the user object to itself.

Another approach would be to use a backend PHP script to do it.

I wish I had the code to give you, but I don't, and I'm sorry neither of these suggestions are easy to implement.

Good luck.

Mark Marsiglio

Wednesday 14 June 2006 1:09:32 am

I experienced this problem until I added the last policy shown here to the role:

Guest Self Edit   	user 	          selfedit           No limitations
Guest Self Edit   	user 	          password           No limitations
Guest Self Edit   	user 	          preferences         No limitations
Guest Self Edit   	content 	edit               Section( Users ) , Owner( Self )

While the owner is shown as administrator, this seemed to work. I can edit the user account under which I am logged in, but get a permission denied error when trying to edit any other user account or other content object.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

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