I don't handle roles that way. I check to see if the user is in an
appropriate role in the interface code, with IsUserInRole(); if the
CFC throws a roles error it means there's a programming error so I let
it fail to my CFERROR handler template (which emails me and tells me
to fix the code). This should all show up in testing so by the time
the user gets to the product there should be no CFC roles errors.

On 1/8/06, Baz <[EMAIL PROTECTED]> wrote:
> Good points in favor of Roles James.
>
> To extend M!ke's previous cftry/cfcatch example for handling roles, what
> happens when many roles exist - maybe 5, 10 or 100... Does people's code
> actually end up looking like this:
>
> <!--- admins --->
> <cftry>
>   <cfset result = myAdminFunc()>
>   <cfcatch type="any">
....
[snip]
--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:228747
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to