Oh.
Right.
the NOT keyword.

I'm going to rewrite the security code on all the pages to reflect this..
...
...
...
Not..:-)
-Gel
p.s.
All jokes aside, thanks a lot for replying and giving an alternate solution.
I really don't recall why I didn't use NOT, instead of EQ 0 :-)

----- Original Message -----
From: Chris Evans <[EMAIL PROTECTED]>

> I may be missing a pice of logic, but this may work a little better:
>
> <!--- SECURITY CODE ---->
>
> <CFIF IsDefined('DeptID')>
>  <CFLOOP List="form.DeptID" INDEX="x">
>   <cfif NOT ListContains(session.currentprivileges,x)>
>      <cflocation url="#noclearance#" addtoken="yes">
>   </CFIF>
>  </CFLOOP>
> </CFIF>
>
> <!--- End SECURITY CODE ---->


------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to