From ad955792a8ade5c0015aa3d68f86b1035c1acc31 Mon Sep 17 00:00:00 2001 From: Marius Cramer <m.cramer@pixcept.de> Date: Wed, 22 Jan 2014 17:30:52 +0100 Subject: [PATCH] Fixed bug from previous commit --- interface/lib/classes/remoting.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/interface/lib/classes/remoting.inc.php b/interface/lib/classes/remoting.inc.php index 7c3d057af1..ccb70e7081 100644 --- a/interface/lib/classes/remoting.inc.php +++ b/interface/lib/classes/remoting.inc.php @@ -224,7 +224,7 @@ class remoting { $this->server->fault('invalid parameters', $value . ' is no valid sys_userid.'); return false; } - $value = $app->functions->intval($value); + $permissions[$key] = $app->functions->intval($value); break; case 'sys_groupid': // check if groupid is valid @@ -233,7 +233,7 @@ class remoting { $this->server->fault('invalid parameters', $value . ' is no valid sys_groupid.'); return false; } - $value = $app->functions->intval($value); + $permissions[$key] = $app->functions->intval($value); break; case 'sys_perm_user': case 'sys_perm_group': @@ -249,7 +249,7 @@ class remoting { if(strpos($value, 'i') !== false) $newvalue .= 'i'; if(strpos($value, 'u') !== false) $newvalue .= 'u'; if(strpos($value, 'd') !== false) $newvalue .= 'd'; - $value = $newvalue; + $permissions[$key] = $newvalue; unset($newvalue); break; -- GitLab