From c827cefac10ae4163ddf7ebc44a7919c6aff02da Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Fri, 02 Jul 2010 07:26:05 -0400 Subject: [PATCH] Removed some debug output from the ajax alert windows if a ajax request fails. --- interface/lib/classes/remoting_lib.inc.php | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/interface/lib/classes/remoting_lib.inc.php b/interface/lib/classes/remoting_lib.inc.php index 06a4d6d..da5c228 100644 --- a/interface/lib/classes/remoting_lib.inc.php +++ b/interface/lib/classes/remoting_lib.inc.php @@ -166,7 +166,9 @@ $this->sys_userid = $user['userid']; $this->sys_default_group = $user['default_group']; $this->sys_groups = $user['groups']; - $_SESSION["s"]["user"]["typ"] = $user['typ']; + // $_SESSION["s"]["user"]["typ"] = $user['typ']; + // we have to force admin priveliges for the remoting API as some function calls might fail otherwise. + $_SESSION["s"]["user"]["typ"] = 'admin'; } return true; -- Gitblit v1.9.1