• 
      

    Pass the LocalSite to the view when using the check_localsite_admin decorator.

    Review Request #8421 — Created Sept. 20, 2016 and submitted

    Information

    Review Board
    release-3.0.x
    d93cf62...

    Reviewers

    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.

    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-3.0.x (ea1c37a)