User Guide

366 Chapter 19 Application Security
</cfif>
<cfif IsAuthorized("DataSource", "Orders", "select")>
<cfquery name="GetList" datasource="Orders">
SELECT *
FROM Orders
</cfquery>
Authorization Succeeded. Order information follows:
<cfoutput query="GetList">
#Customer# - #BalanceDue#<br>
</cfoutput>
<cfelse>
<cfabort showerror="You cannot view order information.">
</cfif>