Pman/Login.php
authorAlan Knowles <alan@akbkhome.com>
Tue, 21 Dec 2010 02:53:24 +0000 (10:53 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 21 Dec 2010 02:53:24 +0000 (10:53 +0800)
Pman/Login.php

index ae86ec4..086a218 100644 (file)
@@ -91,6 +91,13 @@ class Pman_Login extends Pman
             $this->jok(array('id' => 0)); // not logged in..
             exit;
         }
+        
+         $ff= HTML_FlexyFramework::get();
+        if (!empty($ff->Pman['auth_comptype']) && $ff->Pman['auth_comptype'] != $u->company()->comptype) {
+            $this->jerr("Login not permited to outside companies");
+        }
+        
+        
         $au = $u->getAuthUser();
         
         $aur = $au->authUserArray();