Forums / Setup & design / How to allow user to change own information.

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

eZ debug

Timing: Jan 19 2025 01:00:56
Script start
Timing: Jan 19 2025 01:00:56
Module start 'content'
Timing: Jan 19 2025 01:00:57
Module end 'content'
Timing: Jan 19 2025 01:00:57
Script end

Main resources:

Total runtime0.8450 sec
Peak memory usage4,096.0000 KB
Database Queries217

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0084 590.5156180.8125
Module start 'content' 0.00840.7250 771.3281741.8828
Module end 'content' 0.73340.1115 1,513.2109340.4297
Script end 0.8449  1,853.6406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4655210.0002
Check MTime0.00150.1770210.0001
Mysql Total
Database connection0.00130.158310.0013
Mysqli_queries0.759989.93282170.0035
Looping result0.00220.25712150.0000
Template Total0.806595.420.4032
Template load0.00220.256320.0011
Template processing0.804395.179920.4021
Template load and register function0.00010.015710.0001
states
state_id_array0.00120.142310.0012
state_identifier_array0.00110.131020.0006
Override
Cache load0.00190.2210360.0001
Sytem overhead
Fetch class attribute can translate value0.00120.139670.0002
Fetch class attribute name0.00150.1750110.0001
XML
Image XML parsing0.00330.388970.0005
class_abstraction
Instantiating content class attribute0.00000.0030120.0000
General
dbfile0.00851.0017390.0002
String conversion0.00000.000830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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