From 0dc6bbe5a0874f4b0eb5f78145cbc5557148814d Mon Sep 17 00:00:00 2001 From: Aaron Tan Date: Thu, 27 Apr 2017 16:50:16 -0400 Subject: [PATCH] Prevent workflow resources from returning 402 with basic license. --- 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 b90c56ed42..f922a38244 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -120,7 +120,7 @@ class WorkflowsEnforcementMixin(object): Mixin to check that license supports workflows. ''' def check_permissions(self, request): - if not feature_enabled('workflows'): + if not feature_enabled('workflows') and request.method not in ('GET', 'OPTIONS'): raise LicenseForbids(_('Your license does not allow use of workflows.')) return super(WorkflowsEnforcementMixin, self).check_permissions(request)