Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
adb537c3
Commit
adb537c3
authored
Aug 18, 2016
by
Marius Burkard
Browse files
- fix from previous commit
parent
4a34e61e
Changes
1
Show whitespace changes
Inline
Side-by-side
interface/lib/classes/remote.d/client.inc.php
View file @
adb537c3
...
...
@@ -171,7 +171,7 @@ class remoting_client extends remoting {
// check if this one is reseller
$check
=
$app
->
db
->
queryOneRecord
(
'SELECT `limit_client` FROM `client` WHERE `client_id` = ?'
,
intval
(
$params
[
'parent_client_id'
]));
if
(
$check
[
'limit_client'
]
==
0
)
{
throw
new
SoapFault
(
'Invalid reseller'
,
'
Selected client is not a reseller. REMOVING PARENT_CLIENT_ID!!!
'
);
//
Selected client is not a reseller. REMOVING PARENT_CLIENT_ID!!!
$params
[
'parent_client_id'
]
=
0
;
}
elseif
(
isset
(
$params
[
'limit_client'
])
&&
$params
[
'limit_client'
]
!=
0
)
{
throw
new
SoapFault
(
'Invalid reseller'
,
'Reseller cannot be client of another reseller.'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment