~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/browser/bug.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:
968
968
 
969
969
    def initialize(self):
970
970
        # If we have made it to here then the logged in user can see the
971
 
        # bug, hence they can see any subscribers.
 
971
        # bug, hence they can see any assignees and subscribers.
 
972
        # The security adaptor will do the job also but we don't want or need
 
973
        # the expense of running several complex SQL queries.
972
974
        authorised_people = []
973
975
        for task in self.bugtasks:
974
976
            if task.assignee is not None: