Hiding the FarCry Tray on the Front End

Came across this nice tip a little while ago from AJ Mercer on the farcry-dev group.

It hides the FarCry “tray” which is visible on the front end of your website to users who are logged in to FarCry. I happen to have a use case for this at the moment so it was good timing.

Simply put this code snippet in any template there you don’t want the tray appearing. Personally I put this in /config/serverSpecificRequestScope.cfm_ so it’s picked up on every page request as I never wanted it to appear.

<cfset request.mode.bAdmin = false>

Thanks AJ :)