mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
MDL-32046 show warning that unenrolment of all users is not allowed in non-verbose mode
This commit is contained in:
parent
a2b30aa852
commit
a12f9825dd
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user