Duncan,

> Does anybody know a way of hiding these menu items from a user who doesn't

> have sufficient permissions rather than returning the login screen when 
> the menu item is selected?

One option is that you can wrap the link in a <cfif/> block.

Example:  If logged in, try dumping the following...
<cfdump var="#session.dmSec.authentication#" />

If you're not logged into FarCry, the sub structure "authentication" will
not exist.  Thus you could do something like the following:

<cfif structKeyExists(session.dmSec, 'authentication')>Yes I'm logged in.
Display link here<cfelse>No I'm not logged in.</cfif>

If, however, you wanted to get more granular with security (like checking
for a specific role) I suggest looking at one (or more) of the fields found
within the "authentication" sub structure (use the <cfdump/> above for
reference).

Hope this helps get you in the right direction :)


Jeff Coughlin
Web Application Developer
http://www.jeffcoughlin.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/farcry-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to