Allow Features to disable web API resources
Review Request #8470 — Created Oct. 17, 2016 and submitted — Latest diff uploaded
Review Board web API resources now have a
required_features
attribute
which indicates which features must be enabled for the feature to be
available. If any of the listed features are disabled, the resource will
return a 403 Forbidden error for any of the resource's methods. When all
features are enabled, the resource will behave as normal.
Ran unit tests.
Diff Revision 2
This is not the most recent revision of the diff. The latest diff is revision 5. See what's changed.
orig
1
2
3
4
5
reviewboard/webapi/base.py |
---|
reviewboard/webapi/tests/test_base.py |
---|