$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();