Commit 14fb480a by Dave St.Germain

Use correct auth/permissions.

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