Prevent workflow resources from returning 402 with basic license.

This commit is contained in:
Aaron Tan 2017-04-27 16:50:16 -04:00
parent 25fae0eafd
commit 0dc6bbe5a0

View File

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