[Fix] Examination level

This commit is contained in:
Quentin Guidée
2020-07-18 10:31:14 +02:00
parent a826bb7cc9
commit c2df1c33d1
29 changed files with 48 additions and 100 deletions

View File

@@ -97,7 +97,7 @@ bool Controller::handleEvent(Ion::Events::Event event) {
} else {
#endif
::App::Snapshot * selectedSnapshot = container->appSnapshotAtIndex(index);
if (ExamModeConfiguration::appIsForbiddenInExamMode(selectedSnapshot->descriptor()->name(), GlobalPreferences::sharedGlobalPreferences()->examMode())) {
if (ExamModeConfiguration::appIsForbiddenInExamMode(selectedSnapshot->descriptor()->examinationLevel(), GlobalPreferences::sharedGlobalPreferences()->examMode())) {
App::app()->displayWarning(I18n::Message::ForbidenAppInExamMode1, I18n::Message::ForbidenAppInExamMode2);
} else {
bool switched = container->switchTo(selectedSnapshot);