DataObjects/Core_person_signup.php
[Pman.Core] / Images.php
index 04638bf..63ddce3 100644 (file)
@@ -255,8 +255,7 @@ class Pman_Core_Images extends Pman
     }
     function validateSize()
     {
-        
-        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;
         }
         
@@ -272,7 +271,7 @@ class Pman_Core_Images extends Pman
                 '200x200',  
                 '400x0',
                 '300x100', // logo on login.
-                '500',
+                '500'
             );
         
         // this should be configurable...