case "select_postal": Login::access_action("entitled", $_SESSION['ngroup']); if ($period->state=="ballot_preparation") { warning(_("In ballot preparation phase it is not allowed anymore to select postal voting.")); redirect(); } $period->select_postal(); redirect(); break; case "unselect": Login::access_action("entitled", $_SESSION['ngroup']); if ($period->state=="ballot_preparation") { warning(_("In ballot preparation phase it is not allowed anymore to change the ballot choice.")); redirect(); } $period->unselect_ballot(); redirect(); break; case "save_approved": Login::access_action("admin"); action_required_parameters('approved_id'); if ($period->state!="ballot_application") { warning(_("In the current phase of the period it is not allowed anymore to approve ballots.")); redirect(); } $period->save_approved_ballots(); redirect(); break; default: warning(_("Unknown action")); redirect();