Skip to content

Commit 55186da

Browse files
committed
debug: commit for debugging
1 parent 376b40b commit 55186da

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

lti_consumer/plugin/views.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,12 +231,13 @@ def launch_gate_endpoint(request, suffix=None): # pylint: disable=unused-argume
231231
# Deep Linking Launch - Configuration flow launched by
232232
# course creators to set up content.
233233
deep_linking_content_item_id = launch_data.deep_linking_content_item_id
234-
234+
log.error("abc-launch-message %s \n %s", launch_data.message_type, lti_consumer.dl)
235235
if launch_data.message_type == 'LtiDeepLinkingRequest' and lti_consumer.dl:
236236
# Check if the user is staff before LTI doing deep linking launch.
237237
# If not, raise exception and display error page
238-
if user_role not in ['instructor', 'staff']:
239-
raise AssertionError('Deep Linking can only be performed by instructors and staff.')
238+
log.error("abcde9876 %s ", user_role)
239+
# if user_role not in ['instructor', 'staff']: # Assert
240+
# raise AssertionError('Deep Linking can only be performed by instructors and staff.')
240241
# Set deep linking launch
241242
context.update({'launch_url': lti_consumer.dl.deep_linking_launch_url})
242243

@@ -245,7 +246,9 @@ def launch_gate_endpoint(request, suffix=None): # pylint: disable=unused-argume
245246
# different parameters, set by instructors when running the DL configuration flow.
246247
elif deep_linking_content_item_id and lti_consumer.dl:
247248
# Retrieve Deep Linking parameters using the parameter.
248-
content_item = lti_config.ltidlcontentitem_set.get(pk=deep_linking_content_item_id)
249+
log.error("before-content\n")
250+
content_item = lti_config.ltidlcontentitem_set.get(pk=deep_linking_content_item_id) # Assert
251+
log.error("xyz1234 %s ", content_item)
249252
# Only filter DL content item from content item set in the same LTI configuration.
250253
# This avoids a malicious user to input a random LTI id and perform LTI DL
251254
# content launches outside the scope of its configuration.

0 commit comments

Comments
 (0)