home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 1999 April / APC443.iso / features / grpware / coldfus / coldfusi.exe / data1.cab / Documentation / snippets / isauthorized.cfm < prev    next >
Encoding:
Text File  |  1998-10-08  |  763 b   |  30 lines

  1. <!---  This view-only example calls the IsAuthorized
  2.        function. --->
  3. <HTML>
  4. <HEAD>
  5. <TITLE>IsAuthorized Function</TITLE>
  6. </HEAD>
  7. <BODY>
  8. <H3>IsAuthorized Function</H3>
  9. <P>
  10. Call the IsAuthorized function to determine
  11. if the user is authorized to perform the specified 
  12. action on the specified ColdFusion resource.
  13. <P>
  14. This is a view-only example. Refer to the commented
  15. source code for more information.
  16. <!---
  17. <CFIF IsAuthorized(Datasource, Orders, select)>
  18.    <CFQUERY name="GetList" datasource="Orders">
  19.        SELECT *    FROM Orders
  20.    </CFQUERY>
  21.    <CFOUTPUT QUERY="GetList">
  22.        Authorization Succeeded. Order information follows:
  23.        #Customer# - #BalanceDue#<BR>
  24.     </CFOUTPUT>
  25. </CFIF>
  26. ---> 
  27.  
  28. </BODY>
  29. </HTML>       
  30.