Inside Coldfusion MX

"-->

IsAuthUserInRole ("role_name")

Description

Checks to see if an authenticated user belongs to the specified role and returns true or false.

Example

<cfif IsAuthUserInRole("Admin") > <cfoutput>Authenticated user is an administrator</cfoutput> <cfelse IsAuthUserInRole("User") > <cfoutput>Authenticated user is a user</cfoutput> </cfif>

Категории