Limited subtree access to a user

Author Message

Mark Machullhan

Tuesday 02 December 2008 1:34:48 am

I would like to give an user access to only part of a subree

example:

Main Menu
+Section1
+Section2
++Item1
++Itme2
++Item3
+Section3

I would like the user to only have access to Item3 and the menu would look like:

Main Menu
+Section2
++Item3

Without full access to the parent you can't see any children objects. If you give access to the parent you can see everything under it.

And ideas?

Thank you!

Jérôme Vieilledent

Monday 08 December 2008 5:13:37 am

Hi Mark

You may use Sections for that : http://ez.no/doc/ez_publish/technical_manual/4_0/concepts_and_basics/content_management/sections

Create a specific section for your Items and then use the roles and policies to give access or not.
Besides, to generate your menu, you may use the nodes' "can_read" attribute. See here : http://ez.no/doc/ez_publish/technical_manual/4_0/reference/objects/ezcontentobjecttreenode

Regards

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 19:36:53
Script start
Timing: Jan 18 2025 19:36:53
Module start 'layout'
Timing: Jan 18 2025 19:36:53
Module start 'content'
Timing: Jan 18 2025 19:36:53
Module end 'content'
Timing: Jan 18 2025 19:36:53
Script end

Main resources:

Total runtime0.7447 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 587.9219152.6250
Module start 'layout' 0.00490.0030 740.546939.4453
Module start 'content' 0.00790.7354 779.9922500.4453
Module end 'content' 0.74340.0013 1,280.43758.1563
Script end 0.7446  1,288.5938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4167160.0002
Check MTime0.00130.1718160.0001
Mysql Total
Database connection0.00060.085910.0006
Mysqli_queries0.698593.7958540.0129
Looping result0.00050.0734520.0000
Template Total0.714495.920.3572
Template load0.00170.232920.0009
Template processing0.712795.702920.3563
Template load and register function0.00030.042710.0003
states
state_id_array0.00160.212010.0016
state_identifier_array0.00100.134320.0005
Override
Cache load0.00140.1918180.0001
Sytem overhead
Fetch class attribute can translate value0.00060.086220.0003
Fetch class attribute name0.00260.343530.0009
XML
Image XML parsing0.00100.129920.0005
class_abstraction
Instantiating content class attribute0.00000.001330.0000
General
dbfile0.00100.1361170.0001
String conversion0.00000.000840.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
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs