/**
  * returns available states
  */
 protected function getStates()
 {
     $flags = ContestState::FLAG_USER | ContestState::FLAG_CONTESTOWNER | (ContestCrew::isMember() ? ContestState::FLAG_CREW : 0);
     return ContestEditor::getStates($this->state, $flags);
 }
 /**
  * returns available states
  */
 protected function getStates()
 {
     $flags = ($this->entry->isOwner() ? ContestState::FLAG_USER : 0) | ($this->entry->isOwner() ? ContestState::FLAG_CONTESTOWNER : 0) | (ContestCrew::isMember() ? ContestState::FLAG_CREW : 0);
     return ContestEditor::getStates($this->state, $flags, $this->entry->isClosable());
 }