~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/browser/branchsubscription.py

[r=sinzui][bug=855670] Add additional checks to the private team
        launchpad.LimitedView security adaptor so more users in defined
        roles can see the team.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
        """Return a decorated list of branch subscriptions."""
54
54
 
55
55
        # Cache permissions so private subscribers can be rendered.
 
56
        # The security adaptor will do the job also but we don't want or need
 
57
        # the expense of running several complex SQL queries.
56
58
        if self.user is not None:
57
59
            subscribers = [
58
60
                subscription.person