mirror of
https://github.com/PlagiarismCheck/moodle-plagiarism_pchkorg.git
synced 2024-12-22 12:10:08 +00:00
Support student custom roles v3.13.4
This commit is contained in:
parent
99b58f8e27
commit
8862dc050a
3
lib.php
3
lib.php
@ -329,8 +329,7 @@ class plagiarism_plugin_pchkorg extends plagiarism_plugin {
|
|||||||
$roles[] = strtolower($rolesData->shortname);
|
$roles[] = strtolower($rolesData->shortname);
|
||||||
}
|
}
|
||||||
// Moodle has multiple roles in courses.
|
// Moodle has multiple roles in courses.
|
||||||
$isstudent = in_array('student', $roles)
|
$isstudent = !in_array('teacher', $roles)
|
||||||
&& !in_array('teacher', $roles)
|
|
||||||
&& !in_array('editingteacher', $roles)
|
&& !in_array('editingteacher', $roles)
|
||||||
&& !in_array('managerteacher', $roles);
|
&& !in_array('managerteacher', $roles);
|
||||||
|
|
||||||
|
@ -26,9 +26,9 @@ defined('MOODLE_INTERNAL') || die();
|
|||||||
if (!isset($plugin)) {
|
if (!isset($plugin)) {
|
||||||
$plugin = new stdClass();
|
$plugin = new stdClass();
|
||||||
}
|
}
|
||||||
$plugin->version = 2022111616;
|
$plugin->version = 2023050117;
|
||||||
$plugin->requires = 2020061501; // Requires Moodle 3.9 .
|
$plugin->requires = 2020061501; // Requires Moodle 3.9 .
|
||||||
$plugin->release = 'v3.13.3';
|
$plugin->release = 'v3.13.4';
|
||||||
$plugin->component = 'plagiarism_pchkorg';
|
$plugin->component = 'plagiarism_pchkorg';
|
||||||
$plugin->maturity = MATURITY_STABLE;
|
$plugin->maturity = MATURITY_STABLE;
|
||||||
$plugin->dependencies = array(
|
$plugin->dependencies = array(
|
||||||
|
Loading…
Reference in New Issue
Block a user