projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44f41fb
)
DataObjects/Person.php
author
Alan Knowles
<alan@roojs.com>
Wed, 17 Jul 2013 11:25:38 +0000
(19:25 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 17 Jul 2013 11:25:38 +0000
(19:25 +0800)
DataObjects/Person.php
patch
|
blob
|
history
diff --git
a/DataObjects/Person.php
b/DataObjects/Person.php
index
c5ee3aa
..
bec840f
100644
(file)
--- a/
DataObjects/Person.php
+++ b/
DataObjects/Person.php
@@
-225,7
+225,8
@@
class Pman_Core_DataObjects_Person extends DB_DataObject
function verifyAuth()
{
$ff= HTML_FlexyFramework::get();
- if (!empty($ff->Pman['auth_comptype']) && $ff->Pman['auth_comptype'] != $this->company()->comptype) {
+ if (!empty($ff->Pman['auth_comptype']) &&
+ (!$this->company_id || ($ff->Pman['auth_comptype'] != $this->company()->comptype)) {
$ff->page->jerr("Login not permited to outside companies");
}
return true;