Add an is_enabled_for mechanism for NavigationBarHook.
Review Request #6390 — Created Oct. 1, 2014 and submitted — Latest diff uploaded
This adds a way for
NavigationBarHook
s to be enabled/disabled per-user. This is
done by adding a new, optionalis_enabled_for
flag to the constructor, which is
a callable that returns either True or False.
- Ran unit tests.
- Used this in an extension.
Diff Revision 1
This is not the most recent revision of the diff. The latest diff is revision 2. See what's changed.
orig
1
2
reviewboard/extensions/hooks.py |
---|