diff --git a/library/Icinga/Authentication/UserGroup/DbUserGroupBackend.php b/library/Icinga/Authentication/UserGroup/DbUserGroupBackend.php index 5299bbb7a..d42f275d1 100644 --- a/library/Icinga/Authentication/UserGroup/DbUserGroupBackend.php +++ b/library/Icinga/Authentication/UserGroup/DbUserGroupBackend.php @@ -204,7 +204,7 @@ class DbUserGroupBackend extends DbRepository implements Inspectable, UserGroupB $membershipQuery = $this ->select() ->from('group_membership', array('group_name')) - ->where('user_name', $user->getUsername()); + ->where('user', $user->getUsername()); $memberships = array(); foreach ($membershipQuery as $membership) {