Filter groups and posts based on visibility and owner