MDL-32046 show warning that unenrolment of all users is not allowed in non-verbose mode
This commit is contained in:
@@ -354,9 +354,7 @@ class enrol_database_plugin extends enrol_plugin {
|
||||
}
|
||||
$preventfullunenrol = empty($externalcourses);
|
||||
if ($preventfullunenrol and $unenrolaction == ENROL_EXT_REMOVED_UNENROL) {
|
||||
if ($verbose) {
|
||||
mtrace(' Preventing unenrolment of all current users, because it might result in major data loss, there has to be at least one record in external enrol table, sorry.');
|
||||
}
|
||||
mtrace(' Preventing unenrolment of all current users, because it might result in major data loss, there has to be at least one record in external enrol table, sorry.');
|
||||
}
|
||||
|
||||
// first find all existing courses with enrol instance
|
||||
|
||||
Reference in New Issue
Block a user