List<Question> questions;
if (disableVote != null) {
disable = disableVote;
}
if (lectureQuestionsOnly) {
<BUG>questions = questionService.getLectureQuestions(sessionkey, -1, -1);
questionService.setVotingAdmissions(sessionkey, disable, questions);</BUG>
} else if (preparationQuestionsOnly) {
<BUG>questions = questionService.getPreparationQuestions(sessionkey, -1, -1);
questionService.setVotingAdmissions(sessionkey, disable, questions);</BUG>
} else {

List<Question> questions;
if (disableVote != null) {
disable = disableVote;
}
if (lectureQuestionsOnly) {
questions = questionService.getLectureQuestions(sessionkey);
questionService.setVotingAdmissions(sessionkey, disable, questions);
} else if (preparationQuestionsOnly) {
questions = questionService.getPreparationQuestions(sessionkey);
questionService.setVotingAdmissions(sessionkey, disable, questions);
} else {
