From bd7cd9281bc85fbcdf43b2436d572912894643fd Mon Sep 17 00:00:00 2001 From: Aaron Tan Date: Thu, 24 Aug 2017 15:59:08 -0400 Subject: [PATCH] Allow lower-licensed user to delete workflow resources --- 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 ea53e4e973..16e9efe17a 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -122,7 +122,7 @@ class WorkflowsEnforcementMixin(object): Mixin to check that license supports workflows. ''' def check_permissions(self, request): - if not feature_enabled('workflows') and request.method not in ('GET', 'OPTIONS'): + if not feature_enabled('workflows') and request.method not in ('GET', 'OPTIONS', 'DELETE'): raise LicenseForbids(_('Your license does not allow use of workflows.')) return super(WorkflowsEnforcementMixin, self).check_permissions(request)