X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Images.php;h=68cc36273600ee5f9ed3f4a5167066203c61ccff;hb=692861c958898f425cc365906c092559d7cfc60c;hp=2e7c9819df3f99e6cb27b2d19f8ea506aa28ab05;hpb=a2fcf0a5aab24db643fc0c868d689c1ab3699e16;p=Pman.Core 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);