mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
"MDL-23650, removed user quota check in user draft"
This commit is contained in:
parent
08e7c07b04
commit
44388c41f5
@ -221,12 +221,6 @@ switch ($action) {
|
||||
throw new file_exception('maxbytes');
|
||||
}
|
||||
|
||||
// check if exceed user quota
|
||||
$userquota = file_get_user_used_space();
|
||||
if (filesize($file['path'])+$userquota>=(int)$CFG->userquota) {
|
||||
throw new file_exception('userquotalimit');
|
||||
}
|
||||
|
||||
$record = new stdclass;
|
||||
$record->filepath = $saveas_path;
|
||||
$record->filename = $saveas_filename;
|
||||
|
Loading…
x
Reference in New Issue
Block a user