398
IsProtected
Returns TRUE if the resource is protected in the security context of the authenticated
user.
See also IsAuthorized.
Syntax
IsProtected( resourcetype, resourcename [ , action ])
resourcetype
String specifying the type of resource:
Application
CFML
File
DataSource
Component
CustomTag
UserObject
resourcename
String specifying the name of the resource. Resourcename is the actual resource
that is protected, not to be confused with the rule name, which you specify in the
ColdFusion Administrator. The value specified varies depending on the resource
type:
resourcetype specification
APPLICATION
CFML
FILE
DATASOURCE
COMPONENT
COLLECTION
CUSTOMTAG
USEROBJECT
resourcenamespecification
Application name
CFML tag name
File name
Data source name
Component name
Verity collection name
Custom tag name
Object name
CFML Language Reference
Need help?
Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?
Questions and answers