Toggle based on Authentication

Topics: Customizing Orchard, Writing themes
May 28, 2011 at 3:24 PM

I am trying to toggle content on the Branding.cshtml on my custom theme.  The following code does not compile so I would like to know the proper syntax for identifying if the current user is authenticated or not. 

@if (Request.IsAuthenticate)


Thank you!

May 28, 2011 at 5:11 PM

WorkContext.CurrentUser != null