Skip to content

Commit 49047ff

Browse files
author
Till Brehm
committed
Fixed #4424 Wrong client association when reseller creates a new email domain
1 parent d112b3d commit 49047ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/lib/plugins/mail_mail_domain_plugin.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function onLoad() {
2727
function mail_mail_domain_edit($event_name, $page_form) {
2828
global $app, $conf;
2929

30-
// make sure that the record belongs to the clinet group and not the admin group when a dmin inserts it
30+
// make sure that the record belongs to the client group and not the admin group when a dmin inserts it
3131
// also make sure that the user can not delete entry created by an admin
3232
if($_SESSION["s"]["user"]["typ"] == 'admin' && isset($page_form->dataRecord["client_group_id"])) {
3333
$client_group_id = $app->functions->intval($page_form->dataRecord["client_group_id"]);
@@ -44,7 +44,7 @@ function mail_mail_domain_edit($event_name, $page_form) {
4444
}
4545
if($app->auth->has_clients($_SESSION['s']['user']['userid']) && isset($page_form->dataRecord["client_group_id"])) {
4646
$client_group_id = $app->functions->intval($page_form->dataRecord["client_group_id"]);
47-
$updates = "sys_groupid = $client_group_id, sys_perm_group = 'riud'";
47+
$updates = "sys_groupid = ?, sys_perm_group = 'riud'";
4848
$update_params = array($client_group_id);
4949
if ($event_name == 'mail:mail_domain:on_after_update') {
5050
$tmp = $app->db->queryOneRecord("SELECT userid FROM sys_user WHERE default_group = ?", $client_group_id);

0 commit comments

Comments
 (0)