Limiting possible child class types?

Author Message

Gabriel Ambuehl

Monday 14 April 2003 8:05:44 am

I was wondering whether I can somehow limit the types of child classes to a given class a normal user can create.

After all, if I have a customer class, I don't want people to write articles under it, adding normal comments and stuff is ok, though (well all know that you must stop users from having too many possibilities to do stupid things).

Visit http://triligon.org

Peter Bailey

Monday 14 April 2003 9:48:47 am

Best of my knowledge, that's all handled by the role-policies.

When making a customised "create" policy, your last option is to restrict creation to a specific class-type for the parent.

Paul Borgermans

Monday 14 April 2003 10:46:58 am

And the setup of sections to impose the locations in the node tree where users can create their stuff

Paul

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

Gabriel Ambuehl

Tuesday 15 April 2003 3:31:58 am

Roles perfectly do the job. It might not be the most comfortable of all ways to set it up but sure as hell very flexible. You guys are a great help!

Visit http://triligon.org

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 18 2025 05:04:46
Script start
Timing: Jan 18 2025 05:04:46
Module start 'layout'
Timing: Jan 18 2025 05:04:46
Module start 'content'
Timing: Jan 18 2025 05:04:47
Module end 'content'
Timing: Jan 18 2025 05:04:47
Script end

Main resources:

Total runtime0.7593 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 589.0547152.6250
Module start 'layout' 0.00640.0034 741.679739.4453
Module start 'content' 0.00980.7471 781.1250572.5781
Module end 'content' 0.75690.0024 1,353.703112.1563
Script end 0.7593  1,365.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.5101160.0002
Check MTime0.00140.1833160.0001
Mysql Total
Database connection0.00090.116810.0009
Mysqli_queries0.706693.0584620.0114
Looping result0.00060.0741600.0000
Template Total0.723895.320.3619
Template load0.00210.272620.0010
Template processing0.721795.043820.3609
Template load and register function0.00020.027810.0002
states
state_id_array0.00190.249710.0019
state_identifier_array0.00110.142420.0005
Override
Cache load0.00170.2239140.0001
Sytem overhead
Fetch class attribute can translate value0.00080.099430.0003
Fetch class attribute name0.00090.124250.0002
XML
Image XML parsing0.00080.108330.0003
class_abstraction
Instantiating content class attribute0.00000.001150.0000
General
dbfile0.00090.1212170.0001
String conversion0.00000.001540.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/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: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs