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