1
0
mirror of https://github.com/PlagiarismCheck/moodle-plagiarism_pchkorg.git synced 2024-12-22 04:10:07 +00:00

Support student custom roles v3.13.4

This commit is contained in:
Jane Adelmann 2023-05-01 17:09:59 +03:00
parent 99b58f8e27
commit 8862dc050a
No known key found for this signature in database
GPG Key ID: 4CCF39DF30B8AF72
2 changed files with 3 additions and 4 deletions

View File

@ -329,8 +329,7 @@ class plagiarism_plugin_pchkorg extends plagiarism_plugin {
$roles[] = strtolower($rolesData->shortname);
}
// Moodle has multiple roles in courses.
$isstudent = in_array('student', $roles)
&& !in_array('teacher', $roles)
$isstudent = !in_array('teacher', $roles)
&& !in_array('editingteacher', $roles)
&& !in_array('managerteacher', $roles);

View File

@ -26,9 +26,9 @@ defined('MOODLE_INTERNAL') || die();
if (!isset($plugin)) {
$plugin = new stdClass();
}
$plugin->version = 2022111616;
$plugin->version = 2023050117;
$plugin->requires = 2020061501; // Requires Moodle 3.9 .
$plugin->release = 'v3.13.3';
$plugin->release = 'v3.13.4';
$plugin->component = 'plagiarism_pchkorg';
$plugin->maturity = MATURITY_STABLE;
$plugin->dependencies = array(