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:
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);
|
||||
}
|
||||
// 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);
|
||||
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user