Chapter 2: ColdFusion Functions
399
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.
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
IsAuthorized
function
returns true. In order to determine if a resource is explicitly protected with a rule, you
must use the IsProtected function.
Example
<!--- This example calls the IsProtected function. --->
...
<!--------------------------------------------------------------------
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")>
resourcetype specification
Possible ACTIONs
APPLICATION
ALL
USECLIENTVARIABLES
CFML
Valid actions for the tag specified by resourcename
FILE
READ
WRITE
DATASOURCE
ALL
CONNECT
SELECT
INSERT
UPDATE
DELETE
SP (stored procedure)
COMPONENT
No actions for this resource type
COLLECTION
DELETE
OPTIMIZE
PURGE
SEARCH
UPDATE
CUSTOMTAG
No actions for this resource type
USEROBJECT
Action specified via the ColdFusion Administrator
Summary of Contents for COLDFUSION 4.5-CFML LANGUAGE
Page 1: ...Allaire Corporation CFML Language Reference ColdFusion 4 5...
Page 207: ...Chapter 1 ColdFusion Tags 183 CFCATCH CFTRY BODY HTML...
Page 224: ...200 CFMLLanguageReference CFOUTPUT P Text within CFOUTPUT is always shown CFOUTPUT BODY HTML...
Page 336: ...312 CFMLLanguageReference CFIF BODY HTML...
Page 404: ...380 CFMLLanguageReference DE It is morning CFOUTPUT P BODY HTML...
Page 413: ...Chapter 2 ColdFusion Functions 389 Customer BalanceDue BR CFOUTPUT CFIF BODY HTML...
Page 483: ...Chapter 2 ColdFusion Functions 459 CFOUTPUT CFLOOP BODY HTML...
Page 584: ...560 CFMLLanguageReference...
Page 594: ...570 CFMLLanguageReference...