Skip to content

Commit 694f1e5

Browse files
committed
Fixed: FS#1125 - Path of ftp users changes on website updates
1 parent 67e46dc commit 694f1e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/sites/web_domain_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ function onAfterUpdate() {
393393
$client_id = intval($client["client_id"]);
394394
}
395395

396-
if(($_SESSION["s"]["user"]["typ"] == 'admin' || $app->auth->has_clients($_SESSION['s']['user']['userid'])) && isset($this->dataRecord["client_group_id"]) && $this->dataRecord["client_group_id"] != $this->oldDataRecord["client_group_id"]) {
396+
if(($_SESSION["s"]["user"]["typ"] == 'admin' || $app->auth->has_clients($_SESSION['s']['user']['userid'])) && isset($this->dataRecord["client_group_id"]) && $this->dataRecord["client_group_id"] != $this->oldDataRecord["sys_groupid"]) {
397397
// Set the values for document_root, system_user and system_group
398398
$system_user = $app->db->quote('web'.$this->id);
399399
$system_group = $app->db->quote('client'.$client_id);

0 commit comments

Comments
 (0)