Checking froxlor-local user membership in ftp-group
It prevents possible duplication in list.
This commit is contained in:
@@ -855,8 +855,12 @@ if ($page == 'customers'
|
|||||||
} else {
|
} else {
|
||||||
$local_user = Settings::Get('phpfpm.vhost_httpuser');
|
$local_user = Settings::Get('phpfpm.vhost_httpuser');
|
||||||
}
|
}
|
||||||
|
// check froxlor-local user membership in ftp-group
|
||||||
|
// without this check addition may duplicate user in list if httpuser == local_user
|
||||||
|
if (strpos($ins_data['members'], $local_user) !== false) {
|
||||||
$ins_data['members'] .= ','.$local_user;
|
$ins_data['members'] .= ','.$local_user;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Database::pexecute($ins_stmt, $ins_data);
|
Database::pexecute($ins_stmt, $ins_data);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user