Handling user's rules

Author Message

Pascal France

Monday 12 November 2007 4:00:07 am

Hi,

I have a folder which contains some article objects which can't be read by anonymous.

I would like to know if there is a way to display to anonymous users a list of link to these articles. And if an anonymous click on the link then the login page will be displayed.

By default, if anonymous users can't read article then I can't fetch and display the attributes of these objects.

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Gunnar Birkeland

Monday 12 November 2007 9:17:50 pm

Use access override in your fetch. By providing an empty array you would fetch any object no matter what rights exists.

Limitation array (emtpy array = access override). 

http://ez.no/developer/forum/developer/how_to_fetch_list_ignoring_user_rights/re_how_to_fetch_list_ignoring_user_rights

</major>
----------------------------
ez-version: 3.9.3.
PHP: 4.4.2-1
MYSQL: 4.0.24

Pascal France

Tuesday 13 November 2007 3:03:34 pm

Thank you very much Gunnar.

It's exactely what I was looking for.

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.