human
I wrote the below code

    def _check_readonly(request, *args, **kwargs):
        if (not flag_is_active(request, 'kumaediting')):
            raise ReadOnlyException('kumaediting')
        elif flag_is_active(request, 'kumabanned'):
            raise ReadOnlyException('kumabanned')
        return view(request, *args, **kwargs)
    return _check_readonly

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

def check_readonly(view):