app/models/concerns/thredded/content_moderation_state.rb
def moderation_state_visible_to_user?(user)
      moderation_state_visible_to_all? ||
        (!user.thredded_anonymous? &&
          (user_id == user.id || user.thredded_can_moderate_messageboard?(messageboard)))
    end
def moderation_state_visible_to_user?(user)
      moderation_state_visible_to_all? ||
        (!user.thredded_anonymous? &&
          (user_id == user.id || user.thredded_can_moderate_messageboard?(messageboard)))
    end
def moderation_state_visible_to_user? ( user ) moderation_state_visible_to_all? || ( ! user . thredded_anonymous? && ( user_id == user . id || user . thredded_can_moderate_messageboard? ( messageboard ) ) ) end
Whether this is visible to the given user based on the moderation state.
Whether this is visible to the given user based on the moderation state .