"MDL-23894 fixed user quota limit"
authorDongsheng Cai <unoter@gmail.com>
Tue, 24 Aug 2010 07:18:08 +0000 (07:18 +0000)
committerDongsheng Cai <unoter@gmail.com>
Tue, 24 Aug 2010 07:18:08 +0000 (07:18 +0000)
repository/upload/lib.php

index b443b8c..acef5d3 100755 (executable)
@@ -94,11 +94,6 @@ class repository_upload extends repository {
             }
         }
 
             }
         }
 
-        $userquota = file_get_user_used_space();
-        if (filesize($_FILES[$elname]['tmp_name'])+$userquota>=(int)$CFG->userquota) {
-            throw new file_exception('userquotalimit');
-        }
-
         if (empty($record->itemid)) {
             $record->itemid = 0;
         }
         if (empty($record->itemid)) {
             $record->itemid = 0;
         }