def wants_request(f):
@wraps(f)<EOL>def wrapper(user):<EOL><INDENT>return f(user, request)<EOL><DEDENT>return wrapper<EOL>
Helper decorator for transitioning to user-only requirements, this aids
in situations where the request may be marked optional and causes an
incorrect flow into user-only requirements.

This decorator causes the requirement to look like a user-only requirement
but passes the current request context internally to the requirement.

This decorator is intended only to assist during a transitionary phase
and will be removed in flask-allows 1.0

See: :issue:`20,27`