Images.php
authorEdward <edward@roojs.com>
Mon, 15 Dec 2014 09:02:20 +0000 (17:02 +0800)
committerEdward <edward@roojs.com>
Mon, 15 Dec 2014 09:02:20 +0000 (17:02 +0800)
Images.php

index b10cec2..63ddce3 100644 (file)
@@ -255,8 +255,7 @@ class Pman_Core_Images extends Pman
     }
     function validateSize()
     {
-        print_r($_SERVER['SERVER_ADDR']);exit;
-        if ($this->authUser && $this->authUser->company_id && $this->authUser->company()->comptype=='OWNER') {
+        if (($this->authUser && $this->authUser->company_id && $this->authUser->company()->comptype=='OWNER') || $_SERVER['SERVER_ADDR'] == $_SERVER['REMOTE_ADDR']) {
             return true;
         }