* [task#140300,done,0.2h] add tolist to product / projects.

This commit is contained in:
sunguangming
2025-04-03 10:19:40 +08:00
committed by 刘刚
parent 0e76ae2462
commit 62bc567f41
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -514,6 +514,7 @@ class file extends control
$file = $this->file->getById($fileID);
if(empty($file) or !$this->file->fileExists($file)) return $this->send(array('result' => 'fail', 'message' => $this->lang->file->fileNotFound, 'load' => helper::createLink('my', 'index'), 'closeModal' => true));
if(!$this->file->checkPriv($file)) return $this->send(array('result' => 'fail', 'load' => array('alert' => $this->lang->file->accessDenied, 'locate' => helper::createLink('my', 'index')), 'closeModal' => true));
$obLevel = ob_get_level();
for($i = 0; $i < $obLevel; $i++) ob_end_clean();