Pman/Login.php
authorAlan Knowles <alan@akbkhome.com>
Thu, 16 Dec 2010 03:14:02 +0000 (11:14 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 16 Dec 2010 03:14:02 +0000 (11:14 +0800)
Pman/Login.php

index d08cfaa..e3f02d1 100644 (file)
@@ -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()
     {