Pylons/pyramid_debugtoolbar — pull request #88 by hanula (2012-12-10 10:20:15+00:00)
Title: Per-request toolbar middleware feature switch

Hi,

added possibility to authorize (enable/disable) toolbar functionality on per-request basis.
Using ``config.set_debugtoolbar_request_authorization(callback)`` you can now specify own function to control whether toolbar is enabled for specific request.

``callback`` function takes request object as only param and should return whether toolbar is enabled this request.