projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fa0a98
)
Pman/Login.php
author
Alan Knowles
<alan@akbkhome.com>
Thu, 16 Dec 2010 03:14:02 +0000
(11:14 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 16 Dec 2010 03:14:02 +0000
(11:14 +0800)
Pman/Login.php
patch
|
blob
|
history
diff --git
a/Pman/Login.php
b/Pman/Login.php
index
d08cfaa
..
e3f02d1
100644
(file)
--- a/
Pman/Login.php
+++ b/
Pman/Login.php
@@
-123,6
+123,16
@@
class Pman_Login extends Pman
}
+ function switchUser($id)
+ {
+ // first check they have perms to do this..
+ if (!$this->authUser || ($this->authUser->company_id_comptype != 'OWNER') || !$this->hasPerm('Core.Person', 'E')) {
+ $this->jerr(
+ }
+
+ }
+
+
var $domObj = false;
function post()
{