From: Alan Knowles Date: Thu, 16 Dec 2010 03:14:02 +0000 (+0800) Subject: Pman/Login.php X-Git-Url: http://git.roojs.org/?p=Pman.Base;a=commitdiff_plain;h=5c8c5e5a84b1e8e8041defd7cfb67da49950a88c Pman/Login.php --- diff --git a/Pman/Login.php b/Pman/Login.php index d08cfaa..e3f02d1 100644 --- 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() {