From: Edward Date: Mon, 30 Jul 2018 03:46:32 +0000 (+0800) Subject: Images.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=643c2ebb6516bfbd915fda88744d74e96145e7f7 Images.php --- diff --git a/Images.php b/Images.php index e6da138a..5a8bed3a 100644 --- a/Images.php +++ b/Images.php @@ -181,7 +181,7 @@ class Pman_Core_Images extends Pman $img = DB_DataObjecT::factory('Images'); if (!$id || !$img->get($id)) { - $this->imgErr("image has been removed or deleted.",$s); + $this->imgErr("image has been removed or deleted.",$s); } if (!$this->authUser && !in_array($img->ontable,$this->public_image_tables)) { @@ -203,11 +203,10 @@ class Pman_Core_Images extends Pman if(!$this->hasPermission($img)){ - print_r('no permission');exit; $this->imgErr("access to this image/file has been denied.",$s); } - print_R($img);exit; + $this->serve($img); exit; }