Add an is_enabled_for mechanism for NavigationBarHook.
Review Request #6390 — Created Oct. 1, 2014 and submitted
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.
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+12 -2) |