From: Edward Date: Wed, 13 Feb 2019 03:54:01 +0000 (+0800) Subject: Fix #5684 - Car Registration X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=c0cbd55977fb547c2c797e9c4000e31fd4ca569d Fix #5684 - Car Registration --- diff --git a/Images.php b/Images.php index 2e7c9819..68cc3627 100644 --- a/Images.php +++ b/Images.php @@ -176,8 +176,6 @@ class Pman_Core_Images extends Pman } - - $img = DB_DataObjecT::factory('Images'); if (!$id || !$img->get($id)) { @@ -196,15 +194,13 @@ class Pman_Core_Images extends Pman if ($comp->comptype != 'OWNER') { $this->imgErr("not-owner-company",$s); } + return $this->serve($img); - } - if(!$this->hasPermission($img)){ $this->imgErr("access to this image/file has been denied.",$s); - } $this->serve($img);