human
I wrote the below code

    def decorate(request, *args, **kwargs):
        action = kwargs.get('action')
        Job.objects.can_edit_or_exception(request, action.workflow)
        return view_func(request, *args, **kwargs)
    return wraps(view_func)(decorate)

What's a good function header?
assistant
#Here's a good function header.

def check_action_edition_permission(view_func):