Commit ad955792 authored by Marius Cramer's avatar Marius Cramer

Fixed bug from previous commit

parent 4549a027
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment