Skip to content

Commit

Permalink
Merge pull request #9545 from rtibbles/quizzes_for_everyone
Browse files Browse the repository at this point in the history
Fix quiz display for non-admins
  • Loading branch information
marcellamaki authored Jun 30, 2022
2 parents 357becc + e590e21 commit 66023fd
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { ContentNodeResource, ClassroomResource, ExamResource } from 'kolibri.resources';
import { ContentNodeResource, ExamResource } from 'kolibri.resources';
import samePageCheckGenerator from 'kolibri.utils.samePageCheckGenerator';
import { convertExamQuestionSources } from 'kolibri.utils.exams';
import ConditionalPromise from 'kolibri.lib.conditionalPromise';
import shuffled from 'kolibri.utils.shuffled';
import { ClassesPageNames } from '../../constants';
import { LearnerClassroomResource } from '../../apiResources';
import { contentState } from '../coreLearn/utils';

export function showExam(store, params, alreadyOnQuiz) {
Expand All @@ -21,7 +22,7 @@ export function showExam(store, params, alreadyOnQuiz) {
store.commit('CORE_SET_PAGE_LOADING', false);
} else {
const promises = [
ClassroomResource.fetchModel({ id: classId }),
LearnerClassroomResource.fetchModel({ id: classId }),
ExamResource.fetchModel({ id: examId }),
store.dispatch('setAndCheckChannels'),
];
Expand Down

0 comments on commit 66023fd

Please sign in to comment.