Images.php wip_edward_T5784_COVERAGE_BY_REGION_Others
authorEdward <edward@roojs.com>
Fri, 1 Mar 2019 07:15:35 +0000 (15:15 +0800)
committerEdward <edward@roojs.com>
Fri, 1 Mar 2019 07:15:35 +0000 (15:15 +0800)
Images.php

index bcf9b49..4d2fd14 100644 (file)
@@ -334,6 +334,10 @@ class Pman_Core_Images extends Pman
     }
     function validateSize()
     {
+        if($this->is_local) {
+            return true;
+        }
+        
         if (($this->authUser && !empty($this->authUser->company_id) && $this->authUser->company()->comptype=='OWNER')
             || $_SERVER['SERVER_ADDR'] == $_SERVER['REMOTE_ADDR']) {
             return true;