How do you allow a user to view his own details?

Author Message

Tristan Koen

Monday 25 August 2003 4:18:09 am

When a new user registers, a new user object with a node_id is created.

The problem is that my user cannot see the object
http://mysite.com/content/view/full/86.

The user gets the error message
Access Denied
- You don't have permission to access this area.

I figured that this was a permission problem, to I created a new role called 'user' and assigned it to my user group 'guest users' (the group that all new users are added to).

I added the following code to one of my templates to check is the role was correctly assigned to the user:
{fetch(user, current_user).roles|attribute(show)}
The correct roles popped up on the screen and all seemed well. All I now had to do was add the correct permissions to the role.

I edited the user role and added the following permissions:
user * *
content edit Class( User ) , Owner( Self )
content read Class( User ) , Owner( Self )

It still doesn't work. I deleted my entire cache directory and tried again. No luck.

Can anyone make a couple of suggestions on what I am missing here?

Claus Jensen

Thursday 28 August 2003 4:02:53 am

Hi,
I too have problems with this. But what version are u using?

regards,
claÜs

Vincent Saulnier

Thursday 28 August 2003 11:58:46 am

eZ Crew, will you do something so that the user can change his own detail or tell us how to deal with that problem without modifying the php code (just the templates).

I thinks it's a big problem and there are a lot of posted messages on that topic.

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