Commit 14fb480a by Dave St.Germain

Use correct auth/permissions.

parent a6d155f7
...@@ -35,7 +35,7 @@ urlpatterns = patterns( ...@@ -35,7 +35,7 @@ urlpatterns = patterns(
name="course-video-list" name="course-video-list"
), ),
url( url(
r'^youtube/(?P<youtube_id>[\w]+)$', r'^youtube/(?P<youtube_id>[-_\w]+)$',
views.YoutubeVideoList.as_view(), views.YoutubeVideoList.as_view(),
name="youtube-video-list" name="youtube-video-list"
), ),
......
...@@ -77,7 +77,8 @@ class YoutubeVideoList(generics.ListAPIView): ...@@ -77,7 +77,8 @@ class YoutubeVideoList(generics.ListAPIView):
""" """
Get a list of videos for the given youtube id Get a list of videos for the given youtube id
""" """
permission_classes = (DjangoModelPermissions,) authentication_classes = (OAuth2Authentication, SessionAuthentication)
permission_classes = (ReadRestrictedDjangoModelPermissions,)
serializer_class = VideoSerializer serializer_class = VideoSerializer
queryset = Video.objects.all() queryset = Video.objects.all()
......
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