does it matter what order its in?
isUserInRole("admin,user")
or
isUserInRole("user,admin")
Steve
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Tim
McAuliffe
Sent: Friday, July 15, 2005 12:05 PM
To: CFAussie Mailing List
Subject: [cfaussie] Re: isUserInRole madness
Hey Lucas,
The problem with isUserInRole() is that it performs an AND condition when
you have a list of roles. So isUserInRole("admin,user") will only return
true if you have admin AND user roles.
I've suggested to MM that isUserInRole() should have an optional second
attribute. Either "All" (default) or "Any". That way, it would be fully
backwards compatible but you'd also be able to do an OR comparison when
required. If anyone else thinks this is a good idea, you might want to
request it here:
http://www.macromedia.com/cfusion/mmform/index.cfm?name=wishform&product=17
Cheers
Tim
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/
---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/