Rights to download files in ez

Author Message

Siw Helen Thorslund

Wednesday 18 May 2005 6:01:47 am

I have a site where I want to open for all users to download zip-files without login.

The code I have used is this:

{"/content/download/270/1191/file/filename.zip"|ezurl}

How do I setup the rights for the Anonymous rolle to manage this?

www.VZT.no ( http://www.VZT.no )
VZT References ( http://http://vzt.no/index.php/vzt_eng/referanser )
VZT Extensions ( http://vzt.no/index.php/vzt_eng/extensions )
www.MediaBase.no ( http://www.MediaBase.no )

Ɓukasz Serwatka

Thursday 19 May 2005 12:25:24 am

Hi Siw Helen,

File kernel/content/download.php checks "read" access to file, so you will have to get 'content/read' access to the objects (of class File) for all users.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 31 2025 04:33:55
Script start
Timing: Jan 31 2025 04:33:55
Module start 'layout'
Timing: Jan 31 2025 04:33:55
Module start 'content'
Timing: Jan 31 2025 04:33:56
Module end 'content'
Timing: Jan 31 2025 04:33:56
Script end

Main resources:

Total runtime0.0175 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.0064 588.1328151.2109
Module start 'layout' 0.00640.0024 739.343836.6641
Module start 'content' 0.00880.0067 776.007890.1719
Module end 'content' 0.01550.0020 866.179729.9922
Script end 0.0175  896.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002514.2166140.0002
Check MTime0.00126.7501140.0001
Mysql Total
Database connection0.00074.058810.0007
Mysqli_queries0.004123.193230.0014
Looping result0.00000.051710.0000
Template Total0.00148.010.0014
Template load0.00116.175210.0011
Template processing0.00031.550910.0003
Override
Cache load0.00074.047910.0007
General
dbfile0.00148.135280.0002
String conversion0.00000.032640.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.0003 secs