Hi Carlo,
> If the user is allowed to see page 4, then he would be able to see all
> pages that contains a 4, so it does not work correctly.
>
>
> <cfif listcontains(newlist, "#pageid#")>
> <cfinclude template=#page#>
(snipped)
Try using ListFind instead of ListContains. ListContains will find list
elements which contain your search string in any part of a list element.
ListFind only finds list elements which match your search string in their
entirety, so using ListContains with pageid 4 would match 4, 14 and 44
while ListFind would only return 4.
Hope this helps,
Colin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists