Re: isUserInRole takes multiple roles?

2005-02-02 Thread Alex Sherwood
Sean Corfield wrote: >On Wed, 02 Feb 2005 08:53:31 -0500, Alex Sherwood <[EMAIL PROTECTED]> wrote: > > >>Does the inUserInRole() function take a list of roles or a single role? >> >> > >It can take a list - see: > >http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/funct142.ht > Thanks,

Re: isUserInRole takes multiple roles?

2005-02-02 Thread Barney Boisvert
It's doubly confusing because the ROLES attribute of CFFUNCTION works in the reverse way. IsUserInRole does an AND to check for ALL roles, while CFFUNCTION does an OR to check for ANY role. cheers, barneyb On Wed, 2 Feb 2005 07:38:38 -0800, Sean Corfield <[EMAIL PROTECTED]> wrote: > On Wed, 02 F

Re: isUserInRole takes multiple roles?

2005-02-02 Thread Alex Sherwood
Pascal Peters wrote: >It can take a list, but it works as an AND (the user needs ALL the roles >in the list). If you want OR, there was a simple IsUserInAnyRole() UDF >by Raymond Camden I believe. > >Pascal > > That's what I thought..Thanks Pascal... -- Alex ~~~

Re: isUserInRole takes multiple roles?

2005-02-02 Thread Sean Corfield
On Wed, 02 Feb 2005 08:53:31 -0500, Alex Sherwood <[EMAIL PROTECTED]> wrote: > Does the inUserInRole() function take a list of roles or a single role? It can take a list - see: http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/funct142.htm > The Complete ColdFusionMX Reference has an exampl

RE: isUserInRole takes multiple roles?

2005-02-02 Thread Pascal Peters
> To: CF-Talk > Subject: isUserInRole takes multiple roles? > > Question: > > Does the inUserInRole() function take a list of roles or a single role? > > The Complete ColdFusionMX Reference has an example where multiple roles > are passed in, but I cannot get it to wo

isUserInRole takes multiple roles?

2005-02-02 Thread Alex Sherwood
Question: Does the inUserInRole() function take a list of roles or a single role? The Complete ColdFusionMX Reference has an example where multiple roles are passed in, but I cannot get it to work. I find it hard to believe that they would publish an example that would be incorrect (an not due