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.

eZ debug

Timing: Jan 31 2025 01:26:17
Script start
Timing: Jan 31 2025 01:26:17
Module start 'layout'
Timing: Jan 31 2025 01:26:17
Module start 'content'
Timing: Jan 31 2025 01:26:17
Module end 'content'
Timing: Jan 31 2025 01:26:17
Script end

Main resources:

Total runtime0.0240 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 588.2656151.2266
Module start 'layout' 0.00500.0038 739.4922220.7188
Module start 'content' 0.00880.0137 960.2109997.7266
Module end 'content' 0.02250.0015 1,957.937529.9922
Script end 0.0240  1,987.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002410.1946140.0002
Check MTime0.00104.1680140.0001
Mysql Total
Database connection0.00072.941310.0007
Mysqli_queries0.002410.125130.0008
Looping result0.00000.096410.0000
Template Total0.00114.410.0011
Template load0.00073.053510.0007
Template processing0.00031.358910.0003
Override
Cache load0.00052.099910.0005
General
dbfile0.00249.806280.0003
String conversion0.00000.033840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs