Commit 09549a20 authored by Marius Cramer's avatar Marius Cramer

Fixed bug from previous commit

parent b493d129
......@@ -65,7 +65,7 @@ class remoting_admin extends 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
......@@ -74,7 +74,7 @@ class remoting_admin extends 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':
......@@ -90,7 +90,7 @@ class remoting_admin extends 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