"MDL-23650, removed user quota check in user draft"

This commit is contained in:
Dongsheng Cai 2010-08-04 07:32:17 +00:00
parent 08e7c07b04
commit 44388c41f5

View File

@ -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;