Macromedia coldfusion 4.5-cfml language reference User Manual
Chapter 2: ColdFusion Functions
387
IsAuthorized
Returns TRUE if the user is authorized to perform the specified action on the specified
ColdFusion resource.
ColdFusion resource.
See also
IsAuthenticated
.
Syntax
IsAuthorized(
resourcetype, resourcename [, action ])
resourcetype
String specifying the type of resource:
•
Application
•
CFML
•
File
•
DataSource
•
Component
•
Collection
•
CustomTag
•
UserObject
resourcename
String specifying the name of the resource. The value specified varies depending
on the resource type:
on the resource type:
Resourcename is the actual resource that is protected, not to be confused with the
rule name, which you specify in the ColdFusion Administrator.
rule name, which you specify in the ColdFusion Administrator.
resourcetype specification
resourcename specification
APPLICATION
Application name
CFML
CFML tag name
FILE
File name
DATASOURCE
Data source name
COMPONENT
Component name
COLLECTION
Verity collection name
CUSTOMTAG
Custom tag name
USEROBJECT
Object name