DataObjects/Core_person_signup.php
[Pman.Core] / Images.php
index 1d7e835..63ddce3 100644 (file)
@@ -255,16 +255,13 @@ 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;
         }
         
         // DEFAULT allowed - override with $cfg['sizes'];
         
         $sizes = array(
-                '50',
-                '50x50',
                 '100', 
                 '100x100', 
                 '150', 
@@ -279,7 +276,6 @@ class Pman_Core_Images extends Pman
         
         // this should be configurable...
         $ff = HTML_FlexyFramework::get();
-        print_r($ff);exit;
         $cfg = isset($ff->Pman_Images) ? $ff->Pman_Images :
                 (isset($ff->Pman_Core_Images) ? $ff->Pman_Core_Images : array());