Just don't forget that isUserInRole() is an AND check. If you want an OR check, you need to use a UDF. (I believe I posted one to cflib.)
On 4/3/07, Everett, Al (NIH/NIGMS) [C] <[EMAIL PROTECTED]> wrote: > > I'm using cflogin to authenticate users on a site. Is there a way to > return the roles that a user is in (i.e. the roles that are passed > > in using CFLOGINUSER)? I'm using a very hackish method of looping > through all of the roles for a site and using isuserinrole() to > > determine this, but was hoping that there was a more elegant solution. > > Apparently not. You'll probably need to put something in the SESSION > scope to keep track of that. > > IsUserInRole() does accept a comma-delimited list of roles, if that > helps. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion MX7 by AdobeĀ® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274470 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

