public bool MustRenderSuggestionActionsFor(SOStringSuggestion suggestion) { if (!UserIsLoggedIn || !UserCanReview) { return(false); } // a trusted user can't act on a suggestion approved by a trusted user return(!(suggestion.State == StringSuggestionState.ApprovedByTrustedUser && UserType == UserType.TrustedUser)); }
public bool CurrentUserSuggested(SOStringSuggestion suggestion) => UserIsLoggedIn && suggestion.CreatedById == UserId;