I am using sp2010. I get the current user from the context. And I would like to check if it is equal to the creator of an list item. But the code says it is not equal. Why? Is there some other solution to equal 2 spusers?
// check if current user is creator SPUser creator = new SPFieldUserValue(web, this.ListItem["Author"].ToString()).User; SPUser currentUser = SPContext.Current.Web.CurrentUser; CurrentUserIsExpertiseCreator = creator.Equals(currentUser);