diff --git a/lib.php b/lib.php index 22e3390..ee4c8b7 100644 --- a/lib.php +++ b/lib.php @@ -646,14 +646,14 @@ function mod_pulse_inplace_editable($itemtype, $itemid, $newvalue) { * * @param navigation_node $navigation * @param stdClass $course - * @param context_course $context + * @param \context $context * @return void */ function mod_pulse_extend_navigation_course(navigation_node $navigation, stdClass $course, $context) { global $PAGE; $addnode = $context->contextlevel === CONTEXT_COURSE; - $addnode = $addnode && has_capability('gradereport/grader:view', $context); // TODO: Custom capability. + $addnode = $addnode && has_capability('mod/pulse:addtemplateinstance', $context); if ($addnode) { $id = $context->instanceid; $url = new moodle_url('/mod/pulse/automation/instances/list.php', [ diff --git a/version.php b/version.php index 7ef8a36..398b948 100644 --- a/version.php +++ b/version.php @@ -25,7 +25,7 @@ defined('MOODLE_INTERNAL') || die(); $plugin->component = 'mod_pulse'; -$plugin->version = 2023100702; +$plugin->version = 2023100703; $plugin->requires = 2020061500; // Requires Moodle 3.90. $plugin->release = 'v2.0'; $plugin->maturity = MATURITY_RC;