Ejemplo n.º 1
0
	switch ($action) {

	case "submit_proposal":
		Login::access_action("entitled", $_SESSION['ngroup']);
		if (!$proposal->is_proponent(Login::$member)) {
			warning(_("Your are not a proponent of this proposal."));
			redirect();
		}
		$proposal->submit();
		redirect();
		break;

	case "apply_proponent":
		Login::access_action("entitled", $_SESSION['ngroup']);
		action_required_parameters('proponent');
		$proposal->update_proponent(trim($_POST['proponent']));
		redirect();
		break;
	case "become_proponent":
		Login::access_action("entitled", $_SESSION['ngroup']);
		action_required_parameters('proponent');
		$proposal->add_proponent(trim($_POST['proponent']));
		redirect();
		break;
	case "confirm_proponent":
		Login::access_action("entitled", $_SESSION['ngroup']);
		action_required_parameters('member');
		if (!$proposal->is_proponent(Login::$member)) {
			warning(_("Your are not a proponent of this proposal."));
			redirect();
		}