sections and related object - strange behaviour

Author Message

Heiner Wurbs

Thursday 04 August 2005 6:39:39 am

Hi there,
I'm wondering about a behaviour of eZ. The situation is as follows: I have a file inside the media section which I use as a related object inside a xml block of a folder in the standard section.
If I view this with the anonymous user, who has only read access to the standard section, the title of the file is displayed, but when I click to this file title, I have no access until I'm logged into the system. I would now expect, that I do not see anything of this file or that I can access the file complete; but this is mysterious. Is it a bug?
Any hints? I'm using 3.6.0.
Heiner

Xavier Dutoit

Thursday 04 August 2005 8:22:45 am

Hi Heiner,

I have the same behavior on 3.5. I also was wondering if it was a bug or a feature.

If I remember right, I modified the embeded template to check by hand if the viewer had the right to access the object. At the end, I gave anonymous the right to access the media section anyway ;)

Have a look at the bug report, I might have filled one at that time.

X+

http://www.sydesy.com

Gabriel Ambuehl

Thursday 04 August 2005 11:33:33 am

Slightly off topic, but do you happen to know what happens with enhancedobjectrelation in this case, Xavier?

Visit http://triligon.org

Xavier Dutoit

Thursday 04 August 2005 11:57:37 pm

Good question.

Don't know... have to test...or wait until someone report it as a bug ;)

X+

P.S. I've updated the template and the code to get rid of some really annoying error messages (mostly when no object where selected in checkbox list mode) on pubsvn.

http://www.sydesy.com

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

Main resources:

Total runtime0.0184 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.0045 589.1797151.2266
Module start 'layout' 0.00450.0028 740.406336.6797
Module start 'content' 0.00730.0093 777.085994.1875
Module end 'content' 0.01660.0017 871.273433.9922
Script end 0.0183  905.2656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002613.9444140.0002
Check MTime0.00105.6959140.0001
Mysql Total
Database connection0.00052.695410.0005
Mysqli_queries0.002312.270830.0008
Looping result0.00000.059710.0000
Template Total0.00116.010.0011
Template load0.00094.737710.0009
Template processing0.00021.278910.0002
Override
Cache load0.00073.583510.0007
General
dbfile0.00157.977180.0002
String conversion0.00000.037740.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