From b93a344606b4688515c7380c7963d8ffd19d57bf Mon Sep 17 00:00:00 2001 From: Sushil Tiwari Date: Thu, 6 Jun 2024 14:13:11 +0545 Subject: [PATCH] Remove restriction for project and lead --- apps/assisted_tagging/serializers.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/assisted_tagging/serializers.py b/apps/assisted_tagging/serializers.py index c6798ad070..a0baecaa2b 100644 --- a/apps/assisted_tagging/serializers.py +++ b/apps/assisted_tagging/serializers.py @@ -25,15 +25,14 @@ def validate_lead(self, lead): af = lead.project.analysis_framework if af is None or not af.assisted_tagging_enabled: raise serializers.ValidationError('Assisted tagging is disabled for the Framework used by this project.') - if self.project.is_private: - raise serializers.ValidationError('Assisted tagging is not available for private projects.') - if lead.confidentiality in (Lead.Confidentiality.CONFIDENTIAL, Lead.Confidentiality.RESTRICTED): - raise serializers.ValidationError('Assisted tagging is not available for confidential or restricated leads') return lead class DraftEntryGqlSerializer( - ProjectPropertySerializerMixin, DraftEntryBaseSerializer, UserResourceCreatedMixin, serializers.ModelSerializer + ProjectPropertySerializerMixin, + DraftEntryBaseSerializer, + UserResourceCreatedMixin, + serializers.ModelSerializer, ): class Meta: model = DraftEntry