def is_shown(self, request): if not getattr(settings, 'WAGTAIL_WORKFLOW_ENABLED', True): return False return workflow_permission_policy.user_has_any_permission( request.user, ['add', 'change', 'delete'] )
def is_shown(self, request): return workflow_permission_policy.user_has_any_permission( request.user, ['add', 'change', 'delete'] )
def is_shown(self, request): if not getattr(settings, "WAGTAIL_WORKFLOW_ENABLED", True): return False return workflow_permission_policy.user_has_any_permission( request.user, ["add", "change", "delete"])