mirror of
https://github.com/ansible/awx.git
synced 2026-01-23 15:38:06 -03:30
Merge pull request #326 from jangsutsr/7500_add_workflow_license_check_to_user_capabilities
Allow lower-licensed user to delete workflow resources
This commit is contained in:
commit
90bff467a4
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user