diff --git a/airtime_mvc/application/models/Schedule.php b/airtime_mvc/application/models/Schedule.php index 555897ed6..a893d9dbe 100644 --- a/airtime_mvc/application/models/Schedule.php +++ b/airtime_mvc/application/models/Schedule.php @@ -9,7 +9,6 @@ class Application_Model_Schedule */ public static function IsFileScheduledInTheFuture($p_fileId) { - Logging::info($p_fileId); $sql = <<$p_fileId), 'column'); - Logging::info($count); return (is_numeric($count) && ($count != '0')); } diff --git a/airtime_mvc/application/models/StoredFile.php b/airtime_mvc/application/models/StoredFile.php index 6d8387e95..d1b7a2eca 100644 --- a/airtime_mvc/application/models/StoredFile.php +++ b/airtime_mvc/application/models/StoredFile.php @@ -381,18 +381,17 @@ SQL; if (Application_Model_Schedule::IsFileScheduledInTheFuture($this->getId())) { throw new DeleteScheduledFileException(); } -Logging::info("1111"); + $userInfo = Zend_Auth::getInstance()->getStorage()->read(); $user = new Application_Model_User($userInfo->id); $isAdminOrPM = $user->isUserType(array(UTYPE_SUPERADMIN, UTYPE_ADMIN, UTYPE_PROGRAM_MANAGER)); if (!$isAdminOrPM && $this->getFileOwnerId() != $user->getId()) { throw new FileNoPermissionException(); } - Logging::info("222"); $file_id = $this->_file->getDbId(); Logging::info($file_id); Logging::info("User ".$user->getLogin()." is deleting file: ".$this->_file->getDbTrackTitle()." - file id: ".$file_id); -Logging::info("3333"); + $filesize = $this->_file->getFileSize(); if ($filesize <= 0) { throw new Exception("Cannot delete file with filesize ".$filesize);