function updateDocumentPoll(bytes32 _proposal)
    public
    returns (bool majority)
  {
    
    
    require(!documentHasAchievedMajority[_proposal]);

    
    
    Poll storage poll = documentPolls[_proposal];
    majority = checkPollMajority(poll);

    
    
    if (majority)
    {
      documentHasAchievedMajority[_proposal] = true;
      documentMajorities.push(_proposal);
      emit DocumentMajority(_proposal);
    }
    return majority;
  }