Move django_comment_client to discussion/
This commit is contained in:
@@ -17,7 +17,7 @@ from opaque_keys.edx.django.models import CourseKeyField, UsageKeyField
|
||||
from six import text_type
|
||||
|
||||
from config_models.models import ConfigurationModel
|
||||
from lms.djangoapps import django_comment_client
|
||||
from lms.djangoapps.discussion import django_comment_client
|
||||
from openedx.core.djangoapps.catalog.models import CatalogIntegration
|
||||
from openedx.core.djangoapps.lang_pref.api import get_closest_released_language
|
||||
from openedx.core.djangoapps.models.course_details import CourseDetails
|
||||
|
||||
@@ -161,7 +161,7 @@ class DiscussionXBlock(XBlock, StudioEditableXBlockMixin, XmlParserMixin):
|
||||
:rtype: bool
|
||||
"""
|
||||
# normal import causes the xmodule_assets command to fail due to circular import - hence importing locally
|
||||
from django_comment_client.permissions import has_permission
|
||||
from lms.djangoapps.discussion.django_comment_client.permissions import has_permission
|
||||
|
||||
return has_permission(self.django_user, permission, self.course_key)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user