How would i write this correctly in CFML?

<Cfif #Deptid# IN #session.privileges#>

Of course I want to check if the list of values in DeptID are all included
in the list of values in the session.privileges list of values.

Sooo..

deptid may be "11001, 12000,13000"
and session.privileges may be :
"ViewReports,AddUsers,AddGroups,11001,12000,13000,14000,18201"

In this case, the DeptIDs are all found in the Priviliges list, so the user
is authorised.

Umm..is there a single tag to run this check?

-Gel


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