def can_access(self, user):
        if self.is_private:
            if self.organization:
                if self.organization.users.filter(
                    id=user.id,
                ).exists():
                    return True
            return self.owner == user
        else:
            return True
Can access
dataset/ETHPy150Open nvbn/coviolations_web/projects/models.py/Project.can_access