Forums / General / user selfedit

user selfedit

Author Message

Andrew Kelly

Wednesday 12 April 2006 4:37:28 am

Dear all,

I am trying to perform the simple task of permitting users to edit their profile information from the public site access of my site. I've spent about the last 3 hours reading every post I could find and try every suggestion made on the topic, but so far no luck.

The general concensus seems to be simply
-- provide the user/selfedit role to the group in question
-- provide a link to /content/edit/<user_content_object_id>

This simply does not work, sorry. After adding the role user/password to my subscribers group, I have no problem with password changes from the "front end". But user/selfedit is not permitting access to profile editing as all the posts seem to say it should.

I'm not really even interested in allowing these users to change their whole profile. All I'm after is giving them the ability to change password and e-mail address from the public site access (front end).

Can somebody please tell me how this is done or point me to some clear documentation? I'd REALLY, REALLY appreciate it, and thank you greatly in advance.
(If your answer is "assign the user/selfedit role" don't bother posting, because it simply doesn't work).

Thanks in advance,

Andy

Pascal von Büren

Wednesday 12 April 2006 6:21:56 am

Hi Andrew

Do your users have the permission, to edit their own content objects?
Maybe you should grant <b>Content/edit</b> with limitation to Owner=Self to the specific user class.

Just a guess...

Andrew Kelly

Wednesday 12 April 2006 6:40:40 am

Hi Pascal,

Thanks for the suggestion. That's one of the many things that I tried and at which I failed.
Giving the user edit/self permissions won't work, becuase the user objects were created and are owned by the administrator user.

Andy

Betsy Gamrat

Wednesday 12 April 2006 8:27:10 am

Hi,

One option would be to create a new user class, with additional fields, and use those fields to populate the profile. That's probably a good starting point. Copy the existing user class and change it to suit your needs.

More complex options:

Would it be possible to change the ownership of the user object to itself?

I've never tried it, you may be able to create an event that fires after publish and changes the owner of the user object to itself.

Another approach would be to use a backend PHP script to do it.

I wish I had the code to give you, but I don't, and I'm sorry neither of these suggestions are easy to implement.

Good luck.

Mark Marsiglio

Wednesday 14 June 2006 1:09:32 am

I experienced this problem until I added the last policy shown here to the role:

Guest Self Edit   	user 	          selfedit           No limitations
Guest Self Edit   	user 	          password           No limitations
Guest Self Edit   	user 	          preferences         No limitations
Guest Self Edit   	content 	edit               Section( Users ) , Owner( Self )

While the owner is shown as administrator, this seemed to work. I can edit the user account under which I am logged in, but get a permission denied error when trying to edit any other user account or other content object.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

eZ debug

Timing: Jan 19 2025 06:24:35
Script start
Timing: Jan 19 2025 06:24:35
Module start 'content'
Timing: Jan 19 2025 06:24:36
Module end 'content'
Timing: Jan 19 2025 06:24:36
Script end

Main resources:

Total runtime0.7966 sec
Peak memory usage4,096.0000 KB
Database Queries204

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.7734180.8594
Module start 'content' 0.00560.6718 769.6328658.1016
Module end 'content' 0.67740.1191 1,427.7344337.0938
Script end 0.7965  1,764.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4832210.0002
Check MTime0.00140.1704210.0001
Mysql Total
Database connection0.00080.099710.0008
Mysqli_queries0.715889.85862040.0035
Looping result0.00210.26952020.0000
Template Total0.770496.720.3852
Template load0.00190.244320.0010
Template processing0.768596.471320.3842
Template load and register function0.00010.011910.0001
states
state_id_array0.00090.114110.0009
state_identifier_array0.00070.082220.0003
Override
Cache load0.00170.2077420.0000
Sytem overhead
Fetch class attribute can translate value0.00140.173050.0003
Fetch class attribute name0.00130.162790.0001
XML
Image XML parsing0.00350.440950.0007
class_abstraction
Instantiating content class attribute0.00000.0022100.0000
General
dbfile0.00650.8142430.0002
String conversion0.00000.000630.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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs