From de68d7893865ae29ed1dae9470de9c446240fd48 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 5 May 2015 09:34:49 +0200 Subject: [PATCH] DbUserGroupBackend: Add case insensitive filter columns `group' and `parent' refs #8826 --- .../Authentication/UserGroup/DbUserGroupBackend.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/library/Icinga/Authentication/UserGroup/DbUserGroupBackend.php b/library/Icinga/Authentication/UserGroup/DbUserGroupBackend.php index 7e5341e69..32d65ab53 100644 --- a/library/Icinga/Authentication/UserGroup/DbUserGroupBackend.php +++ b/library/Icinga/Authentication/UserGroup/DbUserGroupBackend.php @@ -15,13 +15,22 @@ class DbUserGroupBackend extends DbRepository implements UserGroupBackendInterfa */ protected $queryColumns = array( 'group' => array( + 'group' => 'name COLLATE utf8_general_ci', 'group_name' => 'name', + 'parent' => 'parent COLLATE utf8_general_ci', 'parent_name' => 'parent', 'created_at' => 'UNIX_TIMESTAMP(ctime)', 'last_modified' => 'UNIX_TIMESTAMP(mtime)' ) ); + /** + * The columns which are not permitted to be queried + * + * @var array + */ + protected $filterColumns = array('group', 'parent'); + /** * The default sort rules to be applied on a query *