Files
edx-platform/lms/djangoapps/discussion/toggles_utils.py
2024-01-16 12:12:55 +05:00

13 lines
420 B
Python

"""
Utils for Discussions feature toggles
"""
from openedx.core.djangoapps.django_comment_common.models import CourseDiscussionSettings
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 CourseDiscussionSettings.get(course_key).reported_content_email_notifications