Read access problem during get list of object

Author Message

Anatoly Gubanov

Monday 21 June 2004 7:17:26 am

I need get list of all node which can be read for current user
in parent node. Following code:

        children=fetch( content, list, hash( parent_node_id, $node.node_id,
                                             sort_by, $node.sort_array,     
                                             limit, $page_limit, 
                                             offset, $view_parameters.offset ) )

generate 'Acess denied' exception.

How can I get list all readable objects if folder contains not readable objects for current user ?

Kåre Køhler Høvik

Monday 21 June 2004 7:53:00 am

How are is the roles set up for the user getting 'access denied' ?
Which version of eZ publish are you using ?

--
Kåre Høvik

Kåre Høvik

Anatoly Gubanov

Monday 21 June 2004 8:49:03 am

I use EZ version 3.4.

More detail:
I have folder with some other folders which contains objects (Arcticles for example).
Inner folders assigned to different sections.

User which try to fetch list of folders has permissions read,create and edit Folders and Articles from one of mentioned sections.

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 21:08:07
Script start
Timing: Jan 18 2025 21:08:07
Module start 'layout'
Timing: Jan 18 2025 21:08:07
Module start 'content'
Timing: Jan 18 2025 21:08:07
Module end 'content'
Timing: Jan 18 2025 21:08:07
Script end

Main resources:

Total runtime0.0223 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.0469152.6406
Module start 'layout' 0.00590.0046 740.687539.4766
Module start 'content' 0.01040.0085 780.164189.4922
Module end 'content' 0.01890.0034 869.656330.3047
Script end 0.0223  899.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003415.2186140.0002
Check MTime0.00125.5440140.0001
Mysql Total
Database connection0.00073.125910.0007
Mysqli_queries0.003615.968130.0012
Looping result0.00000.093910.0000
Template Total0.002913.110.0029
Template load0.00188.055010.0018
Template processing0.00114.970710.0011
Override
Cache load0.00146.264710.0014
General
dbfile0.00021.114680.0000
String conversion0.00000.057740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs