FORUM-537: Fix problem when searching with admin's user.