Further clarification:
Roles are case sensitive
l<cfif IsUserInRole("Sales,Manager")> means the user must be in both roles
l<cfif IsUserInRole("Sales") or IsUserInRole("Manager")> means the user must
be in one role or the other
<cffunction name="somemethod" roles="Sales,Manager"> means this method can
only be executed by a user who has been authenticated and authorized by
belonging to any of the named roles
~Dina
----- Original Message -----
From: Patricia Lee
To: CF-Talk
Sent: Sunday, October 03, 2004 7:17 AM
Subject: Re: cflogin ?
<cfif NOT IsUserInRole('admin') AND NOT IsUserInRole('user')>
^^^
-Patti
> i cant ever find anything that tells how to check for more than 1
> acceptable roles
>
> so, say there are 2 roles (admin, user) and both can access the same
pages
> would it be?
>
> <!--- check to see if user is logged in --->
> <cfif NOT IsUserInRole('admin') OR NOT IsUserInRole('user')>
> <cflocation url="" addtoken="no">
> <cfabort>
> </cfif>
>
>
> i cant find any docs that give any info on it
> tia
>
>
>
>
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
- cflogin ? dave
- Re: cflogin ? Stan Winchester
- Re: cflogin ? Patricia Lee
- Re: cflogin ? Dina Hess
- Re: cflogin ? Adam Churvis
- Re: cflogin ? dave
- Re: cflogin ? Anders Green