Sharepoint - What is the best way to determine if CurrentUser is System Account?
To check if the Current User is system account you can use
if (web.CurrentUser.ID == web.Site.SystemAccount.ID)
SystemAccount is a property of SPSite object which gets the System Account of the site collection
SPContext.Current.Web.CurrentUser.ID == SPContext.Current.Site.SystemAccount.ID
This method is suitable?