Policy edit and fetch read

Author Message

Dariusz Zbikowski

Friday 11 July 2003 1:00:40 pm

I have the following problem:

I defined in my page_layer template

{let menu=fetch('content',list,hash(parent_node_id,2,sort_by,array(array(priority))))}
{section name=Menu loop=$menu}
.....

I defined policy "read to all".
Policy "edit to all" is defined only in "Demo section".

When I edit any object in Demo section function fetch return null.

It is a bug or it's OK ... if fetch make "read" function?

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 11:29:09
Script start
Timing: Jan 18 2025 11:29:09
Module start 'layout'
Timing: Jan 18 2025 11:29:09
Module start 'content'
Timing: Jan 18 2025 11:29:10
Module end 'content'
Timing: Jan 18 2025 11:29:10
Script end

Main resources:

Total runtime0.6599 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0085 589.0313152.6250
Module start 'layout' 0.00850.0031 741.656339.4453
Module start 'content' 0.01160.6465 781.1016400.3594
Module end 'content' 0.65810.0017 1,181.46098.1641
Script end 0.6598  1,189.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.5246160.0002
Check MTime0.00130.1943160.0001
Mysql Total
Database connection0.00250.373910.0025
Mysqli_queries0.615393.2419460.0134
Looping result0.00050.0714440.0000
Template Total0.627195.020.3135
Template load0.00230.341220.0011
Template processing0.624894.684920.3124
Template load and register function0.00030.043810.0003
states
state_id_array0.00130.195810.0013
state_identifier_array0.00080.118120.0004
Override
Cache load0.00170.2646140.0001
Sytem overhead
Fetch class attribute can translate value0.00120.181810.0012
Fetch class attribute name0.00140.215510.0014
XML
Image XML parsing0.00020.037610.0002
class_abstraction
Instantiating content class attribute0.00000.001310.0000
General
dbfile0.00060.0935100.0001
String conversion0.00000.001240.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
1content/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/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: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs