* Fix can read file when user not login.
This commit is contained in:
@@ -487,6 +487,7 @@ class file extends control
|
||||
*/
|
||||
public function read($fileID)
|
||||
{
|
||||
if(!$this->loadModel('user')->isLogon()) return print(js::locate($this->createLink('user', 'login')));
|
||||
$file = $this->file->getById($fileID);
|
||||
if(empty($file) or !$this->file->fileExists($file)) return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user