Marius Cramer
2014-01-22 ad955792a8ade5c0015aa3d68f86b1035c1acc31
Fixed bug from previous commit
1 files modified
6 ■■■■ changed files
interface/lib/classes/remoting.inc.php 6 ●●●● patch | view | raw | blame | history
interface/lib/classes/remoting.inc.php
@@ -224,7 +224,7 @@
                        $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 @@
                        $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 @@
                    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;