> Ok..here is the solution I came up with
> and Morning everybody =)
>
> <!--- SECURITY CODE ---->
>
> <CFIF IsDefined('DeptID')>
>  <CFLOOP INDEX="x" FROM="1" TO="#ListLen(form.DeptID)#">
>   <cfif
> ListContains(session.currentprivileges,ListGetAt(form.DeptID,x),",")
> EQ 0>
>      <cflocation url="#noclearance#" addtoken="yes">
>   </CFIF>
>  </CFLOOP>
> </CFIF>
>
> <!--- End SECURITY CODE ---->
>
> Is this the most eloquent solution to the problem?
> :-)

This is what I would have suggested. One way to make it slightly more
elegant (eloquent, whatever) would be to stuff that code into a custom tag.
Then whenever you need to authorize, just call the custom tag:

<cf_security currentpriveledges="#listofPriveledges#" deptID="#deptID#">



- Sean

~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sean Daniels
Manager, Engineering
Marketplace Technologies
[EMAIL PROTECTED]
http://www.dealstream.com
http://www.mergernetwork.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tel: 207.439.6030
cel: 978.764.0799



------------------------------------------------------------------------------
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