Skip to content
Snippets Groups Projects
Unverified Commit 418b1e32 authored by Andrew Shultz's avatar Andrew Shultz Committed by GitHub
Browse files

Merge pull request #309 from openedx/ashultz0/fix-compat-outside-of-block

fix: do not attempt to load the block just to look at the location
parents eb5f71a7 9807de4a
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,12 @@ Please See the [releases tab](https://github.com/openedx/xblock-lti-consumer/rel
Unreleased
~~~~~~~~~~
=======
7.0.1 - 2022-11-29
------------------
Fix LtiConfiguration clean method to look only at location so that it can work in environments that cannot load the block.
7.0.0 - 2022-11-29
------------------
* Refactor anonymous user to real user rebinding function to use `rebind_user` service.
......
......@@ -4,4 +4,4 @@ Runtime will load the XBlock class from here.
from .apps import LTIConsumerApp
from .lti_xblock import LtiConsumerXBlock
__version__ = '7.0.0'
__version__ = '7.0.1'
......@@ -240,8 +240,7 @@ class LtiConfiguration(models.Model):
"config_store": _("LTI Configuration stores on XBlock needs a block location set."),
})
if self.version == self.LTI_1P3 and self.config_store == self.CONFIG_ON_DB:
block = compat.load_enough_xblock(self.location)
if not database_config_enabled(block.scope_ids.usage_id.context_key):
if not database_config_enabled(self.location.course_key):
raise ValidationError({
"config_store": _("LTI Configuration stores on database is not enabled."),
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment