From 4fb9f8836d9bd28d126560a0b0badc47390e13b7 Mon Sep 17 00:00:00 2001 From: artoscinote <85488244+artoscinote@users.noreply.github.com> Date: Mon, 22 Nov 2021 09:49:44 +0100 Subject: [PATCH] Fix my_modules_controller typo [SCI-6278] (#3688) --- app/controllers/my_modules_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/my_modules_controller.rb b/app/controllers/my_modules_controller.rb index ff5f3a800..23e7846b8 100644 --- a/app/controllers/my_modules_controller.rb +++ b/app/controllers/my_modules_controller.rb @@ -124,7 +124,7 @@ class MyModulesController < ApplicationController start_date_changes = @my_module.changes[:started_on] due_date_changes = @my_module.changes[:due_date] - if @my_module.completed_changed? && !can_complete_my_module?(@my_module) + if @my_module.completed_on_changed? && !can_complete_my_module?(@my_module) render_403 && return end