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

eZ debug

Timing: Jan 18 2025 22:27:20
Script start
Timing: Jan 18 2025 22:27:20
Module start 'content'
Timing: Jan 18 2025 22:27:21
Module end 'content'
Timing: Jan 18 2025 22:27:21
Script end

Main resources:

Total runtime0.6382 sec
Peak memory usage4,096.0000 KB
Database Queries47

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.9766180.8125
Module start 'content' 0.00620.6263 769.7891413.2500
Module end 'content' 0.63250.0056 1,183.039142.0703
Script end 0.6381  1,225.1094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.4652140.0002
Check MTime0.00130.2087140.0001
Mysql Total
Database connection0.00090.135510.0009
Mysqli_queries0.603694.5896470.0128
Looping result0.00040.0604450.0000
Template Total0.612295.920.3061
Template load0.00210.328320.0010
Template processing0.610195.608620.3051
Template load and register function0.00040.056110.0004
states
state_id_array0.00090.141510.0009
state_identifier_array0.00070.114120.0004
Override
Cache load0.00170.2690200.0001
Sytem overhead
Fetch class attribute can translate value0.00080.118910.0008
Fetch class attribute name0.00090.135110.0009
XML
Image XML parsing0.00010.014610.0001
class_abstraction
Instantiating content class attribute0.00000.000810.0000
General
dbfile0.00090.1346120.0001
String conversion0.00000.000830.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs