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:
Aaron Tan 2017-08-25 16:49:12 -04:00 committed by GitHub
commit 90bff467a4

View File

@ -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)