Fix #5684 - Car Registration
authorEdward <edward@roojs.com>
Wed, 13 Feb 2019 03:54:01 +0000 (11:54 +0800)
committerEdward <edward@roojs.com>
Wed, 13 Feb 2019 03:54:01 +0000 (11:54 +0800)
Images.php

index 2e7c981..68cc362 100644 (file)
@@ -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);