there is the comparison: if ($modulename = 'mod_assign' && !is_siteadmin() && which actually makes an assignment, perverting the behaviour then on, and preventing the application of the feature of advanced settings.
The fix is just making a real comparison: if ($modulename == 'mod_assign' && !is_siteadmin() &&.
With this change, the feature of advanced settings is kept.
At line:
https://github.com/danmarsden/moodle-plagiarism_urkund/blob/main/lib.php#L1070
there is the comparison:
if ($modulename = 'mod_assign' && !is_siteadmin() &&
which actually makes an assignment, perverting the behaviour then on, and preventing the application of the feature of advanced settings.The fix is just making a real comparison:
if ($modulename == 'mod_assign' && !is_siteadmin() &&
.With this change, the feature of advanced settings is kept.