SAAS-606: Enable disk quota on Airtime Pro

This commit is contained in:
drigato 2015-03-11 13:50:17 -04:00
parent 5b3edaa2ca
commit 55ed21a155
2 changed files with 2 additions and 5 deletions

View File

@ -27,10 +27,9 @@ class PluploadController extends Zend_Controller_Action
$this->view->headLink()->appendStylesheet($baseUrl.'css/addmedia.css?'.$CC_CONFIG['airtime_version']);
$this->view->quotaLimitReached = false;
// temporarily disabling disk quota until all file size values have been set
/*if (Application_Model_Systemstatus::isDiskOverQuota()) {
if (Application_Model_Systemstatus::isDiskOverQuota()) {
$this->view->quotaLimitReached = true;
}*/
}
//Because uploads are done via AJAX (and we're not using Zend form for those), we manually add the CSRF
//token in here.

View File

@ -78,11 +78,9 @@ class CcFiles extends BaseCcFiles {
*/
public static function createFromUpload($fileArray)
{
/*temporarily disabling disk quota until all file sizes have ben set in the database.
if (Application_Model_Systemstatus::isDiskOverQuota()) {
throw new OverDiskQuotaException();
}
*/
/* If full_path is set, the post request came from ftp.
* Users are allowed to upload folders via ftp. If this is the case