fix: removed enable_discussion_mfe from email content (#34061)

This commit is contained in:
Muhammad Adeel Tajamul
2024-01-16 12:12:55 +05:00
committed by GitHub
parent d56c2465af
commit 692b3ac4b2

View File

@@ -1,7 +1,6 @@
"""
Utils for Discussions feature toggles
"""
from lms.djangoapps.discussion.toggles import ENABLE_DISCUSSIONS_MFE
from openedx.core.djangoapps.django_comment_common.models import CourseDiscussionSettings
@@ -10,5 +9,4 @@ def reported_content_email_notification_enabled(course_key):
Checks for relevant flag and setting and returns boolean for reported
content email notification for course
"""
return bool(ENABLE_DISCUSSIONS_MFE.is_enabled(course_key) and
CourseDiscussionSettings.get(course_key).reported_content_email_notifications)
return CourseDiscussionSettings.get(course_key).reported_content_email_notifications