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
45629b1b
Commit
45629b1b
authored
Aug 31, 2012
by
mcramer
Browse files
Fixed: remoting handling of clients/resellers added/updated
parent
2e97b280
Changes
1
Show whitespace changes
Inline
Side-by-side
interface/lib/classes/remoting.inc.php
View file @
45629b1b
...
...
@@ -1063,7 +1063,8 @@ class remoting {
$this
->
server
->
fault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
$affected_rows
=
$this
->
klientadd
(
'../client/form/'
.
(
$reseller_id
?
'reseller'
:
'client'
)
.
'.tform.php'
,
$reseller_id
,
$params
);
if
(
!
isset
(
$params
[
'parent_client_id'
])
||
$params
[
'parent_client_id'
]
==
0
)
$params
[
'parent_client_id'
]
=
$reseller_id
;
$affected_rows
=
$this
->
klientadd
(
'../client/form/'
.
(
isset
(
$params
[
'limit_client'
])
&&
$params
[
'limit_client'
]
>
0
?
'reseller'
:
'client'
)
.
'.tform.php'
,
$reseller_id
,
$params
);
return
$affected_rows
;
}
...
...
@@ -1077,7 +1078,8 @@ class remoting {
$this
->
server
->
fault
(
'permission_denied'
,
'You do not have the permissions to access this function.'
);
return
false
;
}
$affected_rows
=
$this
->
updateQuery
(
'../client/form/'
.
(
$reseller_id
?
'reseller'
:
'client'
)
.
'.tform.php'
,
$reseller_id
,
$client_id
,
$params
);
if
(
!
isset
(
$params
[
'parent_client_id'
])
||
$params
[
'parent_client_id'
]
==
0
)
$params
[
'parent_client_id'
]
=
$reseller_id
;
$affected_rows
=
$this
->
updateQuery
(
'../client/form/'
.
(
isset
(
$params
[
'limit_client'
])
&&
$params
[
'limit_client'
]
>
0
?
'reseller'
:
'client'
)
.
'.tform.php'
,
$reseller_id
,
$client_id
,
$params
);
$app
->
remoting_lib
->
ispconfig_sysuser_update
(
$params
,
$client_id
);
...
...
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