I have just encountered a problem where I am conditionally displaying content using the Authorize tag in the following manner. This was typed in using autocomplete with the tag editor.

<cf_authorize roles="ADMIN,SUPER,STAFF" usermustbeamemberof="ANYOFTHESEROLES">

The enumerated value "ANYOFTHESEROLES' plugged in from the tag editor causes the Authorize tag to generate an error, which fires in an endless loop; you never receive the error message. Changing the function to ListFindNoCase solves the problem, as does using mixed case for the usermustbememberof attribute value ("AnyOfTheseRoles"). I double checked the dates of the Plum vtm files, and they are all dated 4/6, the day I installed the beta, so they are current. The enumerated values installed by the tag editor are uppercase, so you need to change one or the other.

------------------------------------------------------------------------------------------------------------------------------- <cfif ListFind("AnyOfTheseRoles,AllOfTheseRoles", Attributes.userMustBeAMemberOf) EQ 0>
  <cfthrow type="Authorize.Usage"
      message="Improper attribute value passed to cf_Authorize."
detail="The value of the userMustBeAMemberOf attribute must be either ""AnyOfTheseRoles"" or ""AllOfTheseRoles""."
      errorCode="65010">
</cfif>
-------------------------------------------------------------------------------------------------------------------------------

Jeff





Adam Churvis wrote:

I have started to use <cf_authorize> to tie off areas of the site, and
it is working great.

Remember:

1) Call CF_Authorize in the Application.cfm of a module to apply security
settings to every page in that module.

2) Call CF_Authorize at the beginning of an individual page within a module
to apply additional authorization restrictions on that specific page.

3) Call CF_Authorize as a paired tag enclosing content and logic that you
want to execute conditionally.

Respectfully,

Adam Phillip Churvis
Member of Team Macromedia

Advanced Intensive ColdFusion MX Training:
* ColdFusion MX Master Class
* Advanced Development with CFMX and SQL Server 2000
http://www.ColdFusionTraining.com

Download CommerceBlocks V2.1 and LoRCAT from
http://www.ProductivityEnhancement.com

The ColdFusion MX Bible is in bookstores now!




--
_______________________________

Jeff Fleitz
Tekquest, Ltd
Integrated Digital Solutions
http://www.tekquest.com
866.863.2352
_______________________________


Reply via email to