Skip to content

Commit fb06ccf

Browse files
committed
Fixed ftpuser and shelluser prefix.
1 parent 3f3aa84 commit fb06ccf

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

interface/web/sites/ftp_user_edit.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ function getClientName() {
173173
$client_group_id = $_SESSION["s"]["user"]["default_group"];
174174
} else {
175175
// Get the group-id from the data itself
176-
$client_group_id = $this->dataRecord['client_group_id'];
176+
$web = $app->db->queryOneRecord("SELECT sys_groupid FROM web_domain WHERE domain_id = ".intval($this->dataRecord['parent_domain_id']));
177+
$client_group_id = $web['sys_groupid'];
177178
}
178179
/* get the name of the client */
179180
$tmp = $app->db->queryOneRecord("SELECT name FROM sys_group WHERE groupid = " . $client_group_id);

interface/web/sites/shell_user_edit.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ function getClientName() {
195195
$client_group_id = $_SESSION["s"]["user"]["default_group"];
196196
} else {
197197
// Get the group-id from the data itself
198-
$client_group_id = $this->dataRecord['client_group_id'];
198+
$web = $app->db->queryOneRecord("SELECT sys_groupid FROM web_domain WHERE domain_id = ".intval($this->dataRecord['parent_domain_id']));
199+
$client_group_id = $web['sys_groupid'];
199200
}
200201
/* get the name of the client */
201202
$tmp = $app->db->queryOneRecord("SELECT name FROM sys_group WHERE groupid = " . $client_group_id);

0 commit comments

Comments
 (0)