mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
Navigation items listing: don't rely on case sensitive usernames stored in INI files
refs #11051
This commit is contained in:
parent
aae7c1150e
commit
07913238b3
@ -7,6 +7,7 @@ use Exception;
|
|||||||
use Icinga\Application\Config;
|
use Icinga\Application\Config;
|
||||||
use Icinga\Exception\NotFoundError;
|
use Icinga\Exception\NotFoundError;
|
||||||
use Icinga\Data\DataArray\ArrayDatasource;
|
use Icinga\Data\DataArray\ArrayDatasource;
|
||||||
|
use Icinga\Data\Filter\FilterMatchCaseInsensitive;
|
||||||
use Icinga\Forms\ConfirmRemovalForm;
|
use Icinga\Forms\ConfirmRemovalForm;
|
||||||
use Icinga\Forms\Navigation\NavigationConfigForm;
|
use Icinga\Forms\Navigation\NavigationConfigForm;
|
||||||
use Icinga\Web\Controller;
|
use Icinga\Web\Controller;
|
||||||
@ -78,7 +79,7 @@ class NavigationController extends Controller
|
|||||||
$config->getConfigObject()->setKeyColumn('name');
|
$config->getConfigObject()->setKeyColumn('name');
|
||||||
$query = $config->select();
|
$query = $config->select();
|
||||||
if ($owner !== null) {
|
if ($owner !== null) {
|
||||||
$query->where('owner', $owner);
|
$query->applyFilter(new FilterMatchCaseInsensitive('owner', '=', $owner));
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($query as $itemConfig) {
|
foreach ($query as $itemConfig) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user