Multiple sections or permissions

Author Message

Bill Christian

Wednesday 23 April 2003 12:48:09 pm

I am building a site to support the scheduling of events. I plan to construct a new content class for collecting the particulars of an event. A new Host user should have permission to create an event and change the details later if necessary.

Can eZ3 assign edit permissions to a specific content <b>object</b> i.e. only the user who created the event should be able to administer that particular event, no others. I relate this to a forum posting where the original author is the only person to edit the response. How is this done?

My other thought, is to create a separate section for each event. Is this a better model? Does this significantly degrade the performance by having 100s of sections?

Sorry if I am being vague. I am trying to understand my options.

Paul Borgermans

Thursday 24 April 2003 1:06:18 am

Check the roles in the docs. There is an option "self" (to use in your case with edit/change) which does what you want.

hth

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

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 30 2025 19:35:37
Script start
Timing: Jan 30 2025 19:35:37
Module start 'layout'
Timing: Jan 30 2025 19:35:37
Module start 'content'
Timing: Jan 30 2025 19:35:39
Module end 'content'
Timing: Jan 30 2025 19:35:39
Script end

Main resources:

Total runtime1.2903 sec
Peak memory usage8,192.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.1563151.2109
Module start 'layout' 0.00480.0037 739.3672220.6875
Module start 'content' 0.00851.2808 960.05474,429.1328
Module end 'content' 1.28930.0010 5,389.18757.8438
Script end 1.2902  5,397.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.2802160.0002
Check MTime0.00140.1116160.0001
Mysql Total
Database connection0.00070.054010.0007
Mysqli_queries1.209193.7089540.0224
Looping result0.00060.0446520.0000
Template Total1.238396.020.6191
Template load0.00200.158020.0010
Template processing1.236295.810720.6181
Template load and register function0.00160.124510.0016
states
state_id_array0.00110.081810.0011
state_identifier_array0.00070.055720.0004
Override
Cache load0.00170.1325120.0001
Sytem overhead
Fetch class attribute can translate value0.00200.152220.0010
Fetch class attribute name0.00220.169030.0007
XML
Image XML parsing0.00240.184420.0012
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00340.2638170.0002
String conversion0.00000.000740.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs