From 28a213262515c23ac03e1642de61195524ce7e30 Mon Sep 17 00:00:00 2001 From: Jane Adelmann Date: Mon, 31 Oct 2022 15:19:51 +0200 Subject: [PATCH] Fix default value for activity option --- lib.php | 4 +++- version.php | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib.php b/lib.php index 2d30ae4..a2b7136 100644 --- a/lib.php +++ b/lib.php @@ -361,7 +361,9 @@ class plagiarism_plugin_pchkorg extends plagiarism_plugin { ); } - $isreportallowed = !$isstudent || $pchkorgconfigmodel->show_report_for_student($cmid) === true; + $isreportallowed = !$isstudent + || $pchkorgconfigmodel->show_report_for_student($cmid) === true + || $pchkorgconfigmodel->show_report_for_student($cmid) === null; // Only for some type of account, method will call a remote HTTP API. // The API will be called only once, because result is static. diff --git a/version.php b/version.php index f824a4a..7fe352e 100644 --- a/version.php +++ b/version.php @@ -26,9 +26,9 @@ defined('MOODLE_INTERNAL') || die(); if (!isset($plugin)) { $plugin = new stdClass(); } -$plugin->version = 2022103112; +$plugin->version = 2022103115; $plugin->requires = 2020061501; // Requires Moodle 3.9 . -$plugin->release = 'v3.12.2'; +$plugin->release = 'v3.12.3'; $plugin->component = 'plagiarism_pchkorg'; $plugin->maturity = MATURITY_STABLE; $plugin->dependencies = array(