Pman/Login.php
[Pman.Base] / Pman / Login.php
index ec63444..d5e0849 100644 (file)
@@ -201,9 +201,9 @@ class Pman_Login extends Pman
         }
         
         // check if config allows non-owner passwords.
-        // auth_company = "OWNER"
+        // auth_company = "OWNER" auth_company = "CLIENT"
         $ff= HTML_FlexyFramework::get();
-        if (!empty($ff->Pman['auth_company']) && $ff->Pman['auth_company'] != $u->company()->comptype) {
+        if (!empty($ff->Pman['auth_comptype']) && $ff->Pman['auth_comptype'] != $u->company()->comptype) {
             $this->jerr("Login not permited to outside companies");
         }