MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference page 423

Cfml language reference
Table of Contents

Advertisement

Chapter 2: ColdFusion Functions
action
String specifying the action for which authorization is requested. Do not specify
this parameter for COMPONENT and CUSTOMTAG. For all other resource types,
this parameter is required.
resourcetype specification
APPLICATION
CFML
FILE
DATASOURCE
COMPONENT
COLLECTION
CUSTOMTAG
USEROBJECT
Usage
The IsProtected function only returns true if the resource is protected by a rule in the
security context or sandbox within which a request is being processed. An application
may need to determine if a resource is protected and if the current user is authorized
to use the resource. If a resource is not protected, then the
returns true. In order to determine if a resource is explicitly protected with a rule, you
must use the IsProtected function.
Example
<!---
...
<!--------------------------------------------------------------------
The following code checks to see if the Orders data source is protected.
If the data source is protected, the code then checks to see if the
current user is authorized to select information from the datasource.
---------------------------------------------------------------------->
<CFIF IsProtected("DATASOURCE", "Orders", "select")>
This example calls the IsProtected function. --->
Possible ACTIONs
ALL
USECLIENTVARIABLES
Valid actions for the tag specified by resourcename
READ
WRITE
ALL
CONNECT
SELECT
INSERT
UPDATE
DELETE
SP (stored procedure)
No actions for this resource type
DELETE
OPTIMIZE
PURGE
SEARCH
UPDATE
No actions for this resource type
Action specified via the ColdFusion Administrator
IsAuthorized
399
function

Advertisement

Table of Contents
loading
Need help?

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

This manual is also suitable for:

Coldfusion 4.5

Table of Contents