@classmethod
def episode_visible_to(kls, episode, user):
    """
        Predicate function to determine whether an episode of this category
        is visible to a particular user.

        Defaults implementation checks for Profile.restricted_only and
        returns true if we have a regular user.
        """
    from opal.models import UserProfile
    profile = UserProfile.objects.get(user=user)
    if profile.restricted_only:
        return False
    return True
