From 6a7e887369505aabbf3ea9fe566303f97433ad17 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Fri, 23 Jan 2015 10:34:41 -0500 Subject: [PATCH] Fix an issue where non super users would not be able to update a job template survey spec --- awx/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/api/views.py b/awx/api/views.py index 86c4d9efc8..8da406e831 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -1503,7 +1503,7 @@ class JobTemplateSurveySpec(GenericAPIView): def post(self, request, *args, **kwargs): obj = self.get_object() - if not request.user.can_access(self.model, 'change', obj, request.DATA): + if not request.user.can_access(self.model, 'change', obj, None): raise PermissionDenied() try: obj.survey_spec = json.dumps(request.DATA)