MDL-37473 completion: Add missing cap checks to tracked users functions
[moodle.git] / blocks / selfcompletion / block_selfcompletion.php
index 9ea6db4..fe0d3af 100644 (file)
@@ -87,7 +87,7 @@ class block_selfcompletion extends block_base {
 
         // Check this user is enroled
         if (!$info->is_tracked_user($USER->id)) {
-            $this->content->text = get_string('notenroled', 'completion');
+            $this->content->text = get_string('nottracked', 'completion');
             return $this->content;
         }