[Zope-CMF] (no subject)

Boddy Stephen Stephen.Boddy@btcellnet.net
Mon, 2 Jul 2001 18:50:33 +0100


The ProjIndex folder exists in a members folder. If another member comes
along and views a page with the code below, it does not work unless they are
a Reviewer. What I don't get is that the same member who can't "see" the
folder can bypass the script below and look at published items in the
ProjIndex folder. So I guess the question is how do I allow a Member to
check for the existence of, and retrieve the contents of ProjIndex in
another users folder?

Regards
Steve

-----Original Message-----
From: seb bacon [mailto:seb@jamkit.com]
Sent: 02 July 2001 19:08
To: Boddy Stephen
Cc: Zope-CMF (E-mail)
Subject: Re: [Zope-CMF] (no subject)


It's nothing to do with contentItems, you're right.  It's probably
simply that there's no ProjIndex folder where you're calling it from.
Where is it in the ZMI? 

seb

* Boddy Stephen <Stephen.Boddy@btcellnet.net> [010702 16:31]:
> Please can someone explain why this works for a Reviewer, but not a
Member,
> or Anonymous user. (I want the published links to be viewable by anyone)
> 
> <dtml-if ProjIndex>
> 
>   <dtml-in "ProjIndex.contentItems(filter={'Type':['Favorite', 'Link']})"
> sort=id>
>     <div><a href="&dtml-remote_url;">&dtml-title_or_id;</a></div>
>   <dtml-else>
>     <div>No entries yet.</div>
>   </dtml-in>
> 
> </dtml-if>
> 
> Turning off Access future portal content & Review portal content (which
are
> the only security settings different from Member) for Reviewers makes no
> difference, it still works! From what I can tell in the source,
contentItems
> is public, but then the problem is occuring before that when looking for
> ProjIndex. From viewing the generated source it does not appear to be
> detecting the folder ProjIndex in the current folder. Removing the dtml-if
> statements causes the page to throw an exception for Members.
> 
> Thanks in advance
> Steve
> 
> 
> 
> **********************************************************************
> This email and any attachments may be confidential and the subject of 
> legal professional privilege.  Any disclosure, use, storage or copying 
> of this email without the consent of the sender is strictly prohibited.
> Please notify the sender immediately if you are not the intended 
> recipient and then delete the email from your inbox and do not 
> disclose the contents to another person, use, copy or store the 
> information in any medium. 
> **********************************************************************
> 
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
> 
> See http://www.zope.org/Products/PTK/Tracker for bug reports and feature
requests

-- 

   [] j a m k i t 
           
        seb bacon
T:  020 7749 7218
F:  020 7739 8683
M:  07968 301 336
W: www.jamkit.com 



**********************************************************************
This email and any attachments may be confidential and the subject of 
legal professional privilege.  Any disclosure, use, storage or copying 
of this email without the consent of the sender is strictly prohibited.
Please notify the sender immediately if you are not the intended 
recipient and then delete the email from your inbox and do not 
disclose the contents to another person, use, copy or store the 
information in any medium. 
**********************************************************************