From: Alan Knowles Date: Tue, 21 Dec 2010 02:53:24 +0000 (+0800) Subject: Pman/Login.php X-Git-Url: http://git.roojs.org/?p=Pman.Base;a=commitdiff_plain;h=662deb8a58a7ef56573dc5622a875be3e8c5a036 Pman/Login.php --- diff --git a/Pman/Login.php b/Pman/Login.php index ae86ec4..086a218 100644 --- a/Pman/Login.php +++ b/Pman/Login.php @@ -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();