@@ -231,12 +231,13 @@ def launch_gate_endpoint(request, suffix=None): # pylint: disable=unused-argume
231
231
# Deep Linking Launch - Configuration flow launched by
232
232
# course creators to set up content.
233
233
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 )
235
235
if launch_data .message_type == 'LtiDeepLinkingRequest' and lti_consumer .dl :
236
236
# Check if the user is staff before LTI doing deep linking launch.
237
237
# 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.')
240
241
# Set deep linking launch
241
242
context .update ({'launch_url' : lti_consumer .dl .deep_linking_launch_url })
242
243
@@ -245,7 +246,9 @@ def launch_gate_endpoint(request, suffix=None): # pylint: disable=unused-argume
245
246
# different parameters, set by instructors when running the DL configuration flow.
246
247
elif deep_linking_content_item_id and lti_consumer .dl :
247
248
# 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 )
249
252
# Only filter DL content item from content item set in the same LTI configuration.
250
253
# This avoids a malicious user to input a random LTI id and perform LTI DL
251
254
# content launches outside the scope of its configuration.
0 commit comments