From 5c8c5e5a84b1e8e8041defd7cfb67da49950a88c Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 16 Dec 2010 11:14:02 +0800 Subject: [PATCH] Pman/Login.php --- Pman/Login.php | 10 ++++++++++ 1 file changed, 10 insertions(+) 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() { -- 2.39.2