Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Commit

Permalink
Registration are closed if they are not open...
Browse files Browse the repository at this point in the history
  • Loading branch information
halfa committed Jan 20, 2016
1 parent bc1923b commit b025313
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ public function leaveAction(Entity\Tournament $tournament) {
return $this->redirect($this->generateUrl('insalan_tournament_user_index'));
}
// not allowed either if registration are closed
if($tournament->isOpenedNow())
if(!$tournament->isOpenedNow())
return $this->redirect($this->generateUrl('insalan_tournament_user_index'));

$manager->getParticipant()->setManager(null);
Expand Down

0 comments on commit b025313

Please sign in to comment.