How to allow user to change own information.

Author Message

Luc Chase

Friday 08 July 2005 11:24:57 am

It seems straight forward to set policies to allow user to change own password, but what is the correct way to allow a user to change/edit their own user account (name, e-mail, password, etc.)? Adding 'selfedit' to the role policy does NOT seem to be enough.

The Web Application Service Provider

Steve P

Saturday 09 July 2005 2:53:23 am

I think this should be easy enough assuming your user is logged-in & permissions set correctly.

/users/your_user_group/your_user

...should display a list of attributes/values & offer the chance to edit.

You will probably want to create an override template.

Best

Steve

Luc Chase

Saturday 09 July 2005 5:25:44 am

Steve,
yes I agree it SHOULD be easy but it just does not seem to work. e.g.
If one takes the default editor role (which already has login, and the ability to do anything with the content class)and adds selfedit and password editing policies, it allows the user to edit the password but not get access to read or edit their details at /content/edit/<user_node_id>
the returned error is 'Your account does not have the proper privileges to access the requested page.'

The Web Application Service Provider

Jeroen Sangers

Friday 26 May 2006 4:10:24 am

I encountered the same problem. Anybody has a solution?

Maybe the default code to generate the 'Edit Account' link in the login tool is wrong? It currently links to /content/edit/<node-id>.

Marcin Drozd

Friday 26 May 2006 7:59:46 am

Hi

it should be /content/edit/<user_object_id> (contentobject_id)
not /content/edit/<user_node_id>

http://ez-publish.pl

Jeroen Sangers

Friday 02 June 2006 10:25:33 am

Actually I wasn't talking about the code in the template (as I have no idea what template it is that takes care about the login tool) but about the produced link. So if I log on with user ID 133 (node ID 130, object ID 133), the default templates create a link in my login tool to /content/edit/133. This looks good to me, and as this user has the user/selfedit policy, I expect no problem...

Kristof Coomans

Saturday 03 June 2006 1:08:41 am

Hi guys

The user/selfedit policy is deprecated. Use content/edit, class(user), owner(self) instead.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Matthew Carroll

Monday 19 June 2006 10:36:01 am

Thanks Kristof!

I just ran into a similar problem, and content edit Owner( Self ) didn't work - the reason was I had assigned that set of permissions to a sub-tree, and so the Owner( Self ) didn't apply to the user objects. Watch out for that one ;)

Matthew

http://carroll.org.uk

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 07:38:05
Script start
Timing: Jan 31 2025 07:38:05
Module start 'layout'
Timing: Jan 31 2025 07:38:05
Module start 'content'
Timing: Jan 31 2025 07:38:07
Module end 'content'
Timing: Jan 31 2025 07:38:07
Script end

Main resources:

Total runtime1.4363 sec
Peak memory usage4,096.0000 KB
Database Queries80

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 588.2656151.2266
Module start 'layout' 0.00710.0027 739.492236.6797
Module start 'content' 0.00991.4254 776.17191,132.5469
Module end 'content' 1.43520.0010 1,908.718815.8125
Script end 1.4363  1,924.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.2685160.0002
Check MTime0.00150.1032160.0001
Mysql Total
Database connection0.00100.071610.0010
Mysqli_queries1.358194.5544800.0170
Looping result0.00100.0672780.0000
Template Total1.387196.620.6936
Template load0.00260.180120.0013
Template processing1.384596.394420.6923
Template load and register function0.00140.095510.0014
states
state_id_array0.00350.241610.0035
state_identifier_array0.00380.266920.0019
Override
Cache load0.00220.1529360.0001
Sytem overhead
Fetch class attribute can translate value0.00060.040060.0001
Fetch class attribute name0.00230.1594110.0002
XML
Image XML parsing0.00460.322760.0008
class_abstraction
Instantiating content class attribute0.00000.0033120.0000
General
dbfile0.00550.3833280.0002
String conversion0.00000.000540.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
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs