| | |
| | | $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 |
| | |
| | | $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': |
| | |
| | | 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; |