This project is read-only.

Toggle based on Authentication

Topics: Customizing Orchard, Writing themes
May 28, 2011 at 4: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 6:11 PM

WorkContext.CurrentUser != null