Tony, You mean ListFind(roleList,'admin') ;o)
If your roleList was like this (creative,creativeadmin) and you used ListContains to find "admin", you'd get a false positive, as ListContains would find the admin in the second item "creativeadmin", which is not the same as the "admin" role. Regards Stephen ---- Message from "Tony Weeg" <[EMAIL PROTECTED]> at 09:42:57 2003-07-17 ------ >how about a listContains in there :) > ><cfif listContains(roleList,'admin')> >--admin stuff ></cfif> ><cfif listContains(roleList,'creative')> >--creative stuff ></cfif> > > >tony weeg >uncertified advanced cold fusion developer >tony at navtrak dot net >www.navtrak.net >office 410.548.2337 >fax 410.860.2337 > > >-----Original Message----- >From: Jeff Small [mailto:[EMAIL PROTECTED] >Sent: Thursday, July 17, 2003 9:37 AM >To: CF-Talk >Subject: Can the user's role in CFLOGIN be a list? > > >I had always thought, that if I put a column in my table >for users' "roles" that it could be a list, and >IsUserInRole() would return a true or false if the user's >role was contained in the role assigned in the cfloginuser >tag. > >In other words, I had always thought you could have a role >column in a table with values like, "creative, admin" and >both of the following would return true for the same >person: >IsUserInROle("creative") >IsUserInRole("admin") > >However, I can have two roles for myself, and create two >little areas one wrapped in an "admin" role, and another >wrapped in a "programmer" role, and I don't see the second >one. > >In my table, it's stored as "admin, creative". >On the page it's just two areas wrapped by the following: ><cfif IsUserInRole("admin")> >--admin stuff ></cfif> ><cfif IsUserInRole("creative")> >--creative stuff ></cfif> > >But I don't see the second one. I've logged out and logged >back in, cleared cookies, etc. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

