enforcing visibility filter in search