def forum_list_filter(self, qs, user):
        # Any superuser should see all the forums
        if user.is_superuser:
            return qs

        # Check whether the forums can be viewed by the given user
        forums_to_hide = self._get_hidden_forum_ids(qs, user)

        return qs.exclude(id__in=forums_to_hide)
main method
dataset/ETHPy150Open ellmetha/django-machina/machina/apps/forum_permission/handler.py/PermissionHandler.forum_list_filter--crossover with--dataset/ETHPy150Open mrtazz/InstapaperLibrary/bin/instapaper.py/main