Fixed Status FTP Account Bug - Shouldn't Apply to Custom Accounts

This commit is contained in:
earnolmartin 2019-09-12 22:47:59 -06:00
parent 285081d783
commit 8a61cdb9bd

View file

@ -8999,6 +8999,9 @@ function editFtpUser(){
global $ftpusername,$_insert,$status,$newpass,$newpass2;
$this->getVariable(array('ftpusername','_insert','status','newpass','newpass2'));
$success=True;
$userHasAccessToTheseChildrenUsers = $this->getParentsAndChildren($this->activeuser);
$inClause = $this->generateMySQLInClause($userHasAccessToTheseChildrenUsers);
if(!$ftpusername){ # if no ftpusername given, learn it from domainname,
$domainname=$this->chooseDomain(__FUNCTION__,$domainname);