Images.php
authoredward <edward@roojs.com>
Tue, 3 May 2016 06:05:36 +0000 (14:05 +0800)
committeredward <edward@roojs.com>
Tue, 3 May 2016 06:05:36 +0000 (14:05 +0800)
Images.php

index c870c58..8f01715 100644 (file)
@@ -271,9 +271,9 @@ class Pman_Core_Images extends Pman
     }
     function validateSize()
     {
-//        if (($this->authUser && $this->authUser->company_id && $this->authUser->company()->comptype=='OWNER') || $_SERVER['SERVER_ADDR'] == $_SERVER['REMOTE_ADDR']) {
-//            return true;
-//        }
+        if (($this->authUser && $this->authUser->company_id && $this->authUser->company()->comptype=='OWNER') || $_SERVER['SERVER_ADDR'] == $_SERVER['REMOTE_ADDR']) {
+            return true;
+        }
         
         
         $ff = HTML_FlexyFramework::get();