def METHOD_NAME(self, user):
    if user.is_superuser:
        return self
    return self.filter(
        Q(unit__translation__component__project__in=user.allowed_projects)
        & (
            Q(unit__translation__component__restricted=False)
            | Q(unit__translation__component_id__in=user.component_permissions)
        )
    )