From 82d518682ea17fc3c52c1c064cd8eb674b5b2430 Mon Sep 17 00:00:00 2001 From: Mauro Doglio Date: Tue, 6 Oct 2015 15:55:24 +0100 Subject: [PATCH] Bug 1209555 - Fix job_log_url permission classes --- treeherder/webapp/api/job_log_url.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/treeherder/webapp/api/job_log_url.py b/treeherder/webapp/api/job_log_url.py index b4d96be99..261d46577 100644 --- a/treeherder/webapp/api/job_log_url.py +++ b/treeherder/webapp/api/job_log_url.py @@ -12,6 +12,7 @@ logger = logging.getLogger(__name__) class JobLogUrlViewSet(viewsets.ViewSet): + permission_classes = (permissions.HasHawkOrLegacyOauthPermissionsOrReadOnly,) """ A job_log_url object holds a reference to a job log. @@ -45,8 +46,7 @@ class JobLogUrlViewSet(viewsets.ViewSet): return Response(job_log_url_list) - @detail_route(methods=['post'], - permission_classes=(permissions.HasLegacyOauthPermissions,)) + @detail_route(methods=['post']) @with_jobs def update_parse_status(self, request, project, jm, pk=None): """