From 662deb8a58a7ef56573dc5622a875be3e8c5a036 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 21 Dec 2010 10:53:24 +0800 Subject: [PATCH] Pman/Login.php --- Pman/Login.php | 7 +++++++ 1 file changed, 7 insertions(+) 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(); -- 2.39.2