Images.php
authorEdward <edward@roojs.com>
Tue, 19 Feb 2019 09:53:46 +0000 (17:53 +0800)
committerEdward <edward@roojs.com>
Tue, 19 Feb 2019 09:53:46 +0000 (17:53 +0800)
Images.php

index e41410d..3a4b741 100644 (file)
@@ -190,6 +190,10 @@ class Pman_Core_Images extends Pman
         
         if (!$this->authUser && !in_array($img->ontable,$this->public_image_tables)) {
            
+            if($this->is_email) {
+                return $this->serve($img);
+            }
+            
             if ($img->ontable != 'core_company') {
                 $this->imgErr("not-authenticated {$img->ontable}",$s);
             }