Skip to content

Commit

Permalink
Merge branch '4.2-dev' into yubikey-wording
Browse files Browse the repository at this point in the history
  • Loading branch information
tecpromotion committed Jun 12, 2022
2 parents 7c73dd4 + 8c845cc commit 09eef0b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions administrator/components/com_users/src/Model/UsersModel.php
Expand Up @@ -14,6 +14,7 @@
use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\Date\Date;
use Joomla\CMS\Factory;
use Joomla\CMS\Form\Form;
use Joomla\CMS\MVC\Factory\MVCFactoryInterface;
use Joomla\CMS\MVC\Model\ListModel;
use Joomla\CMS\Plugin\PluginHelper;
Expand Down Expand Up @@ -292,12 +293,12 @@ public function getFilterForm($data = [], $loadData = true)
{
$form = parent::getFilterForm($data, $loadData);

if (empty($form) || PluginHelper::isEnabled('multifactorauth'))
if ($form && !PluginHelper::isEnabled('multifactorauth'))
{
return $form;
$form->removeField('mfa', 'filter');
}

$form->removeField('mfa', 'filter');
return $form;
}


Expand Down

0 comments on commit 09eef0b

Please sign in to comment.