role system / hiding content / fetch function

role system / hiding content / fetch function

Friday 28 November 2003 10:30:08 am - 2 replies

Author Message

Georg Franz

Sunday 30 November 2003 6:37:57 am

Hi,

today I've created a new role and a new user who is assigned to the role. And - I was surprised - the fetch function and the search were working as expected (they only have returned "readable" content).

The only difference: First I've created a policy for each section:
1) content / read / section 5
2) content / read / section 6
3) content / read / section 7
4) search *
5) login *

In that case - the search / fetch were returning "not readable" content.

Now I've deleted policy 1-3, my new policy list is:
1) search *
2) login *
3) content / read / section ( 5,6,7)

And - surprise, surprise - fetch and search are working as expected.

So, maybe there is a nasty bug somewhere in the role system?

(PS: Of course, I've removed the
{section show=$:item.object.can_read}
<a class="menu" href={$:item.url_alias|ezroot}>{$:item.name}</a>
{/section}
-Code in the templates)

Kind regards,
Emil.

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Andrew Vorobyov

Thursday 02 June 2005 2:56:12 am

Have opposite problem...

I want to show several fields of the object that is located in Members area for anonymous users...

fetch('content','list') seems does'nt work because objects are located in Members only section

Please advise if you can!

You must be logged in to post messages in this topic!

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