Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
5bebbcba
Commit
5bebbcba
authored
Jul 21, 2009
by
tbrehm
Browse files
Fixed: FS#776 - Client's limits do not apply for it's own client
parent
cc99cf87
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/client/reseller_edit.php
View file @
5bebbcba
...
...
@@ -143,9 +143,8 @@ class page_action extends tform_actions {
$username
=
$app
->
db
->
quote
(
$this
->
dataRecord
[
"username"
]);
$password
=
$app
->
db
->
quote
(
$this
->
dataRecord
[
"password"
]);
$modules
=
ISPC_INTERFACE_MODULES_ENABLED
;
if
(
$this
->
dataRecord
[
"limit_client"
]
>
0
)
$modules
.
=
',client'
;
$startmodule
=
'mail'
;
$modules
=
ISPC_INTERFACE_MODULES_ENABLED
.
',client'
;
$startmodule
=
'client'
;
$usertheme
=
$app
->
db
->
quote
(
$this
->
dataRecord
[
"usertheme"
]);
$type
=
'user'
;
$active
=
1
;
...
...
@@ -195,8 +194,7 @@ class page_action extends tform_actions {
// reseller status changed
if
(
isset
(
$this
->
dataRecord
[
"limit_client"
])
&&
$this
->
dataRecord
[
"limit_client"
]
!=
$this
->
oldDataRecord
[
"limit_client"
])
{
$modules
=
ISPC_INTERFACE_MODULES_ENABLED
;
if
(
$this
->
dataRecord
[
"limit_client"
]
>
0
)
$modules
.
=
',client'
;
$modules
=
ISPC_INTERFACE_MODULES_ENABLED
.
',client'
;
$modules
=
$app
->
db
->
quote
(
$modules
);
$client_id
=
$this
->
id
;
$sql
=
"UPDATE sys_user SET modules = '
$modules
' WHERE client_id =
$client_id
"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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