~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/browser/branch.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:
444
444
        self.branch = self.context
445
445
        self.notices = []
446
446
        # Cache permission so private team owner can be rendered.
 
447
        # The security adaptor will do the job also but we don't want or need
 
448
        # the expense of running several complex SQL queries.
447
449
        authorised_people = [self.branch.owner]
448
450
        if self.user is not None:
449
451
            precache_permission_for_objects(