Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Guilherme Filippo
ISPConfig 3
Commits
a29914f4
Commit
a29914f4
authored
Mar 01, 2009
by
tbrehm
Browse files
Fixed: FS#536 - Adding Email Domain - Reseller sees all clients
parent
b998c509
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/mail/mail_domain_edit.php
View file @
a29914f4
...
...
@@ -76,8 +76,13 @@ class page_action extends tform_actions {
global
$app
,
$conf
;
if
(
$_SESSION
[
"s"
][
"user"
][
"typ"
]
==
'admin'
||
$app
->
auth
->
has_clients
(
$_SESSION
[
's'
][
'user'
][
'userid'
]))
{
// Getting Domains of the user
$sql
=
"SELECT groupid, name FROM sys_group WHERE client_id > 0"
;
// Getting Clients of the user
if
(
$_SESSION
[
"s"
][
"user"
][
"typ"
]
==
'admin'
)
{
$sql
=
"SELECT groupid, name FROM sys_group WHERE client_id > 0"
;
}
else
{
$client_group_id
=
$_SESSION
[
"s"
][
"user"
][
"default_group"
];
$sql
=
"SELECT client.client_id, limit_web_domain, default_webserver FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid =
$client_group_id
"
;
}
$clients
=
$app
->
db
->
queryAllRecords
(
$sql
);
$client_select
=
''
;
if
(
$_SESSION
[
"s"
][
"user"
][
"typ"
]
==
'admin'
)
$client_select
.
=
"<option value='0'></option>"
;
...
...
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