Example #1
0
		Login::access_action("admin");
		action_proposal_select_period();
		break;

	case "admission_decision":
		Login::access_action("admin");
		action_required_parameters("admission_decision");
		$proposal->set_admission_decision(trim($_POST['admission_decision']));
		redirect("#admission_decision");
		break;

	case "save_annotation":
		Login::access_action("admin");
		action_required_parameters("annotation");
		$proposal->annotation = trim($_POST['annotation']);
		$proposal->update(["annotation"]);
		redirect("#annotation");
		break;

	case "move_to_issue":
		Login::access_action("admin");
		action_required_parameters("issue");
		$proposal->move_to_issue($_POST['issue']);
		redirect();
		break;

	case "add_comment":
		if ( !Login::access_allowed("comment") ) {
			warning(_("You don't have permissions to write comments."));
			redirect();
		}