Skip to content
Snippets Groups Projects
  • Gabriel Hurley's avatar
    382a5105
    User.authorized_tenants is now a cached property. · 382a5105
    Gabriel Hurley authored
    This allows moving the call to get authorized tenants out of
    the middleware (which was a wasteful call on many requests),
    and allows the value to be re-used anytime it's accessed more
    than once per request.
    
    Fixes bug 942074.
    
    Change-Id: Ic09b15adbffb16c0358bb28aec73345cc01834ad
    382a5105
    History
    User.authorized_tenants is now a cached property.
    Gabriel Hurley authored
    This allows moving the call to get authorized tenants out of
    the middleware (which was a wasteful call on many requests),
    and allows the value to be re-used anytime it's accessed more
    than once per request.
    
    Fixes bug 942074.
    
    Change-Id: Ic09b15adbffb16c0358bb28aec73345cc01834ad