def METHOD_NAME(view):
    view = enforce_condition(condition, login_redirect=False)(view)
    actions[name] = view
    if menu_text is not None:
        portal_admin_menu_registry.register(
            name, menu_text, menu_url_generator, condition, order=menu_order
        )
    return view