Commit 871c9310 by Jeremy Bowman Committed by GitHub

Merge pull request #14648 from edx/iivic/fix-get-xblock-settings

Fix get xblock settings
parents 792db759 49c3f20a
......@@ -279,3 +279,4 @@ Jhony Avella <jhony.avella@edunext.co>
Tanmay Mohapatra <tanmaykm@gmail.com>
Brian Mesick <bmesick@edx.org>
Jeff LaJoie <jlajoie@edx.org>
Ivan Ivić <iivic@edx.org>
......@@ -51,6 +51,7 @@ from xmodule.modulestore.django import modulestore
from xmodule.modulestore.draft_and_published import DIRECT_ONLY_CATEGORIES
from xmodule.modulestore.exceptions import ItemNotFoundError, InvalidLocationError
from xmodule.modulestore.inheritance import own_metadata
from xmodule.services import SettingsService
from xmodule.tabs import CourseTabList
from xmodule.x_module import PREVIEW_VIEWS, STUDIO_VIEW, STUDENT_VIEW, DEPRECATION_VSCOMPAT_EVENT
......@@ -266,6 +267,8 @@ class StudioEditModuleRuntime(object):
return DjangoXBlockUserService(self._user)
if service_name == "studio_user_permissions":
return StudioPermissionsService(self._user)
if service_name == "settings":
return SettingsService()
return None
......
......@@ -48,6 +48,9 @@ update_module_store_settings(
default_store=os.environ.get('DEFAULT_STORE', 'draft'),
)
# Needed to enable licensing on video modules
XBLOCK_SETTINGS.update({'VideoDescriptor': {'licensing_enabled': True}})
############################ STATIC FILES #############################
# Enable debug so that static assets are served by Django
......
......@@ -109,11 +109,7 @@ FEATURES['ENTRANCE_EXAMS'] = True
################################ COURSE LICENSES ################################
FEATURES['LICENSING'] = True
# Needed to enable licensing on video modules
XBLOCK_SETTINGS = {
"VideoDescriptor": {
"licensing_enabled": True
}
}
XBLOCK_SETTINGS.update({'VideoDescriptor': {'licensing_enabled': True}})
################################ SEARCH INDEX ################################
FEATURES['ENABLE_COURSEWARE_INDEX'] = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment