388
CFML Language Reference
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
If you specify THROWONFAILURE=Yes in the
CFAUTHENTICATE
tag, you can enclose
IsAuthorized in a CFTRY/CFCATCH block to handle possible exceptions
programmatically.
Example
<!--- This example calls the IsAuthorized
function. --->
...
<!--- Is user is authorized to select information from the
Orders data source? --->
<CFIF IsAuthorized("DATASOURCE", "Orders", "select")>
<CFQUERY NAME="GetList" datasource="Orders">
SELECT * FROM Orders
</CFQUERY>
<CFOUTPUT QUERY="GetList">
Authorization Succeeded. Order information follows:
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...