mirror of
https://github.com/mediacms-io/mediacms.git
synced 2026-05-05 20:23:26 -04:00
push
This commit is contained in:
+9
-1
@@ -459,7 +459,7 @@ class LaunchView(View):
|
||||
base_url = reverse('lti:embed_media', args=[media.friendly_token])
|
||||
return self.build_url_with_embed_params(base_url, embed_params)
|
||||
except Media.DoesNotExist:
|
||||
pass
|
||||
return reverse('lti:media_not_found')
|
||||
|
||||
my_media_url = reverse('lti:my_media') + '?mode=lms_embed_mode'
|
||||
if custom.get('embed_share_media') == '0':
|
||||
@@ -677,6 +677,14 @@ class PublicKeyPEMView(View):
|
||||
)
|
||||
|
||||
|
||||
@method_decorator(xframe_options_exempt, name='dispatch')
|
||||
class MediaNotFoundView(View):
|
||||
"""Shown when a media token from an LTI launch no longer exists."""
|
||||
|
||||
def get(self, request):
|
||||
return render(request, 'lti/media_not_found.html', status=404)
|
||||
|
||||
|
||||
@method_decorator(xframe_options_exempt, name='dispatch')
|
||||
class MyMediaLTIView(View):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user