Do not auto mark completion if the user should not be able to do it
This commit is contained in:
parent
1b7a3a401e
commit
36152a4364
|
|
@ -161,7 +161,9 @@ export const useCircleStore = defineStore({
|
|||
},
|
||||
continueFromLearningContent(currentLearningContent: LearningContentInterface) {
|
||||
if (currentLearningContent) {
|
||||
if (currentLearningContent.can_user_self_toggle_course_completion) {
|
||||
this.markCompletion(currentLearningContent, "SUCCESS");
|
||||
}
|
||||
this.closeLearningContent(currentLearningContent);
|
||||
} else {
|
||||
log.error("currentLearningContent is undefined");
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue