Do not auto mark completion if the user should not be able to do it

This commit is contained in:
Daniel Egger 2023-06-26 18:30:03 +02:00
parent 1b7a3a401e
commit 36152a4364
2 changed files with 9 additions and 1 deletions

View File

@ -161,7 +161,9 @@ export const useCircleStore = defineStore({
},
continueFromLearningContent(currentLearningContent: LearningContentInterface) {
if (currentLearningContent) {
this.markCompletion(currentLearningContent, "SUCCESS");
if (currentLearningContent.can_user_self_toggle_course_completion) {
this.markCompletion(currentLearningContent, "SUCCESS");
}
this.closeLearningContent(currentLearningContent);
} else {
log.error("currentLearningContent is undefined");

View File

@ -172,6 +172,12 @@ def update_assignment_completion(
acl.completion_data[key].update(task_data)
acl.save()
# if completion_status == "SUBMITTED":
# mark_course_completion(
# user=assignment_user,
# page=ac.
# )
return ac