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
Massimiliano
ISPConfig 3
Commits
6227d73e
Commit
6227d73e
authored
Aug 29, 2014
by
Till Brehm
Browse files
Fixed: FS#3649 - Resellers can not add domains for their clients in client module
parent
0baacefd
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/client/domain_edit.php
View file @
6227d73e
...
...
@@ -193,7 +193,7 @@ class page_action extends tform_actions {
// make sure that the record belongs to the client group and not the admin group when admin inserts it
// also make sure that the user can not delete domain created by a admin
if
(
$_SESSION
[
"s"
][
"user"
][
"typ"
]
==
'admin'
&&
isset
(
$this
->
dataRecord
[
"client_group_id"
]))
{
if
(
(
$_SESSION
[
"s"
][
"user"
][
"typ"
]
==
'admin'
&&
isset
(
$this
->
dataRecord
[
"client_group_id"
]))
||
(
$_SESSION
[
"s"
][
"user"
][
"typ"
]
!=
'admin'
&&
$app
->
auth
->
has_clients
(
$_SESSION
[
's'
][
'user'
][
'userid'
])))
{
$client_group_id
=
$app
->
functions
->
intval
(
$this
->
dataRecord
[
"client_group_id"
]);
$app
->
db
->
query
(
"UPDATE domain SET sys_groupid =
$client_group_id
, sys_perm_group = 'ru' WHERE domain_id = "
.
$this
->
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