• 
      

    Add an is_enabled_for mechanism for NavigationBarHook.

    Review Request #6390 — Created Oct. 1, 2014 and submitted — Latest diff uploaded

    Information

    Review Board
    release-2.0.x
    a2f1747...

    Reviewers

    This adds a way for NavigationBarHooks to be enabled/disabled per-user. This is
    done by adding a new, optional is_enabled_for flag to the constructor, which is
    a callable that returns either True or False.

    • Ran unit tests.
    • Used this in an extension.