Forums / Developer / How can a user edit their own details

How can a user edit their own details

Author Message

Tony Wood

Monday 19 May 2003 8:03:52 am

Selmah, please don't give any more issues please. ;-) I am going to try again :)

I have users that have created users via 'signup' and not manually via a admin user. How can a user edit their own details? other than their password?

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Selmah Maxim

Monday 19 May 2003 10:30:56 am

ok ok :)))

here is , try it :

{let thisuser=fetch('user','current_user')}
{section show=$thisuser.is_logged_in}
<h2> You need to <a href={concat("user/edit/",$thisuser.contentobject_id)|ezurl}>Edit</a> </h2>
{/section}
{/let}

Tony Wood

Monday 19 May 2003 11:10:36 am

Yep i had <a href="/content/edit/{$current_user.contentobject.id}">Edit my details</a>.

but the effect is the same.

This is the issue, as the user does not have edit rights to itself as it is created automatically it cannot change the details.

I think this will need to be a special routine from eZ...

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Paul Borgermans

Monday 19 May 2003 12:33:58 pm

That seems trivial,

I thought (out of memory) that you can specify the usergroup where these type of users belong. Just add a new rule to the role assigned to that user group which makes editing ("self") possible.

Or am I missing something?

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Tony Wood

Monday 19 May 2003 12:50:42 pm

You see i thought that, but try it for generated users, the generating account for them is by default "administrator". As users do not generate themselves you cannot use 'self'.

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Vincent Saulnier

Wednesday 21 May 2003 7:42:48 am

Hi Tony,

I have the same problem and the only thing I could come up with is to change the code in /kernel/user/register.php to make the owner of the contentObject the new user.

I you find an other way, please tell me.