fix: Loosen the restriction on updating exam_type (#30022)

Currently, if a subsection was a special exam, we do not allow it to be changed back as a special exam. This PR would loosen that change to only disallow reintroducing the exam back to proctored exam. Timed exam can be updated however the user wants

Co-authored-by: Simon Chen <schen@edX-C02FW0GUML85.local>
This commit is contained in:
Simon Chen
2022-03-08 13:00:59 -05:00
committed by GitHub
parent b4bd552365
commit 0940fc5e49
4 changed files with 33 additions and 25 deletions

View File

@@ -325,8 +325,8 @@ define(['jquery', 'backbone', 'underscore', 'gettext', 'js/views/baseview',
isTimedExam: isTimeLimited && !(
isProctoredExam || isPracticeExam || isOnboardingExam
),
specialExamLockedIn: (
xblockInfo.get('released_to_students') && xblockInfo.get('was_ever_special_exam')
proctoredExamLockedIn: (
xblockInfo.get('released_to_students') && xblockInfo.get('was_ever_proctored_exam')
)
}, this.getContext()));