projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
37ba8ff
)
sync
author
Alan Knowles
<alan@akbkhome.com>
Mon, 7 Mar 2011 05:35:58 +0000
(13:35 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Mon, 7 Mar 2011 05:35:58 +0000
(13:35 +0800)
Pman/Login.php
patch
|
blob
|
history
diff --git
a/Pman/Login.php
b/Pman/Login.php
index
a3ffa80
..
d4e2b5c
100644
(file)
--- a/
Pman/Login.php
+++ b/
Pman/Login.php
@@
-91,10
+91,12
@@
class Pman_Login extends Pman
$this->jok(array('id' => 0)); // not logged in..
exit;
}
$this->jok(array('id' => 0)); // not logged in..
exit;
}
+ $au = $u->getAuthUser();
// might occur on shared systems.
$ff= HTML_FlexyFramework::get();
// might occur on shared systems.
$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");
+ if (!empty($ff->Pman['auth_comptype']) && $ff->Pman['auth_comptype'] != $au->company()->comptype) {
+ $au->logout();
+ $this->jerr("Login not permited to outside companies - please reload");
}
}