Forums / Setup & design / How to deny Anonymous users re-edit their content?

How to deny Anonymous users re-edit their content?

Author Message

André R.

Sunday 12 February 2006 3:51:46 pm

Searching around a bit on how to avoid Anonymous Users having access to editing other Anonymous Users's data. Do I still have to patch/hack ez??

The patch / hack I'am talking about is over 2 years old:
http://ez.no/community/bugs/how_to_allow_simple_posting_for_anonymous_users_no_login_requirements

As I see it, this could be solved be adding Status preference (like Status( Draft , Pending )) to < content, edit > Policies.

Anonymous Forum users role, have this Policies:

content create Class( Forum topic ) , ParentClass( Forum ) 
	
content create Class( Forum reply ) , ParentClass( Forum topic ) 
	
content versionread Class( Forum topic , Forum reply ) , Owner( Self ) , Status( Draft , Pending ) 

content edit Class( Forum topic , Forum reply ) , Owner( Self ) 

And in my situation letting the Anonymous Users editing their post after its published is not something we want or need.

Any sugestion on how to acomplish this ??

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Antoine Schmid

Monday 13 March 2006 2:36:04 am

Hello,

I'm in the same situation and I don't know for now how to resolve this problem.

As someone an idea ?

Antoine Schmid

Thursday 16 March 2006 2:37:03 am

Well,

I've updated to version 3.7.4 and this problem seems to be still there.

One solution - with a major security leak - is to allow anonymous users to edit their content and hide editing tools. But you can imagine that it would be nice to improve this as soon as possible.

The solution is to associate the edit priviledge for the first version of an object for users who can create these objects. But I don't know how to do this without modifing the kernel.

Antoine

Matthew Carroll

Thursday 16 March 2006 7:27:50 am

This issue was 'fixed' in 3.7alpha, half a year ago, but for reasons I do not understand has never made it into a released version of ez. I am running one site from svn/trunk as a result, which is far from ideal.

http://ez.no/bugs/view/6680

See also:

http://pubsvn.ez.no/nextgen/trunk/doc/changelogs/3.8/unstable/CHANGELOG-3.6.0-to-3.8.0alpha1

(search on page for '6680')

:-S

Matthew

http://carroll.org.uk

eZ debug

Timing: Jan 18 2025 10:59:57
Script start
Timing: Jan 18 2025 10:59:57
Module start 'content'
Timing: Jan 18 2025 10:59:57
Module end 'content'
Timing: Jan 18 2025 10:59:58
Script end

Main resources:

Total runtime0.7638 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 587.8594180.8125
Module start 'content' 0.00580.6343 768.6719595.6484
Module end 'content' 0.64010.1236 1,364.3203337.3672
Script end 0.7637  1,701.6875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.5354210.0002
Check MTime0.00150.1973210.0001
Mysql Total
Database connection0.00060.084610.0006
Mysqli_queries0.689890.31601990.0035
Looping result0.00180.23901970.0000
Template Total0.737496.520.3687
Template load0.00220.291820.0011
Template processing0.735196.253820.3676
Template load and register function0.00010.012710.0001
states
state_id_array0.00090.112110.0009
state_identifier_array0.00110.145920.0006
Override
Cache load0.00180.2420310.0001
Sytem overhead
Fetch class attribute can translate value0.00140.182140.0003
Fetch class attribute name0.00150.196460.0002
XML
Image XML parsing0.00130.167140.0003
class_abstraction
Instantiating content class attribute0.00000.001360.0000
General
dbfile0.00470.6147340.0001
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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs