How to check if current user is Super User?

Topics: Customizing Orchard, General
Feb 8, 2012 at 12:09 PM

How to check if current user is Super User (user that is created during the installation)?

WorkContext.CurrentUser gives me the current user information but I do not see any flag / role that indicates the user is Super User?

 

 

Coordinator
Feb 8, 2012 at 5:53 PM

WorkContext.CurrentSite.SuperUser