Pass the LocalSite to the view when using the check_localsite_admin decorator.
Review Request #8421 — Created Sept. 20, 2016 and submitted — Latest diff uploaded
This is a backport of a change from RBCommons to pass the computed LocalSite to the view using @check_localsite_admin. Using this, a view can easily access the local site as a local variable without going through the request or performing its own lookup. Since this is only actually used in RBCommons, there's no real impact to Review Board itself.
This change has been tested with RBCommons in production for a long while.
Unit tests pass.