mirror of
https://github.com/ansible/awx.git
synced 2026-02-17 11:10:03 -03:30
Allow lower-licensed user to delete workflow resources
This commit is contained in:
@@ -122,7 +122,7 @@ class WorkflowsEnforcementMixin(object):
|
|||||||
Mixin to check that license supports workflows.
|
Mixin to check that license supports workflows.
|
||||||
'''
|
'''
|
||||||
def check_permissions(self, request):
|
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.'))
|
raise LicenseForbids(_('Your license does not allow use of workflows.'))
|
||||||
return super(WorkflowsEnforcementMixin, self).check_permissions(request)
|
return super(WorkflowsEnforcementMixin, self).check_permissions(request)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user