Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ISPConfig 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ISPConfig
ISPConfig 3
Commits
adb537c3
Commit
adb537c3
authored
8 years ago
by
Marius Burkard
Browse files
Options
Downloads
Patches
Plain Diff
- fix from previous commit
parent
4a34e61e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
interface/lib/classes/remote.d/client.inc.php
+1
-1
1 addition, 1 deletion
interface/lib/classes/remote.d/client.inc.php
with
1 addition
and
1 deletion
interface/lib/classes/remote.d/client.inc.php
+
1
−
1
View file @
adb537c3
...
@@ -171,7 +171,7 @@ class remoting_client extends remoting {
...
@@ -171,7 +171,7 @@ class remoting_client extends remoting {
// check if this one is reseller
// check if this one is reseller
$check
=
$app
->
db
->
queryOneRecord
(
'SELECT `limit_client` FROM `client` WHERE `client_id` = ?'
,
intval
(
$params
[
'parent_client_id'
]));
$check
=
$app
->
db
->
queryOneRecord
(
'SELECT `limit_client` FROM `client` WHERE `client_id` = ?'
,
intval
(
$params
[
'parent_client_id'
]));
if
(
$check
[
'limit_client'
]
==
0
)
{
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
;
$params
[
'parent_client_id'
]
=
0
;
}
elseif
(
isset
(
$params
[
'limit_client'
])
&&
$params
[
'limit_client'
]
!=
0
)
{
}
elseif
(
isset
(
$params
[
'limit_client'
])
&&
$params
[
'limit_client'
]
!=
0
)
{
throw
new
SoapFault
(
'Invalid reseller'
,
'Reseller cannot be client of another reseller.'
);
throw
new
SoapFault
(
'Invalid reseller'
,
'Reseller cannot be client of another reseller.'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment