No, your code is right, although I'd write it like so:

<cfif isUserInRole(dynData)>

You want to double check to see what you are setting your roles too.
Unfortunately, the CFLOGIN system does not provide a getRoles()
function. You will need to just add some debug output to where you set
the roles.

As an aside, I've pretty much decided to give up on this feature. I
used to -love- the roles based security added in MX, but it has had
way too many issues and I'm tired of trying to make it work.

On 3/10/06, Edward Chanter <[EMAIL PROTECTED]> wrote:
> I can't seem to get the IsUserInRole function to accept dynamic data, eg.
>
> <cfset dynData = '15'>
>
> <cfif IsUserInRole("#dynData#")>
>         User is in this role
> </cfif>
>
> Am I being dumb here or am I missing something or is this deliberate?
>
> best wishes,
>
>             -= Ed
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Edward Chanter
> Technical Innovations Manager
> Collaborative Connections Ltd.
>
> http://www.cc.uk.com/
> Phone: +44 (0) 1273 832221
> Mobile: +44 (0) 7866 365282
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235033
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