~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/browser/bugsubscription.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:
556
556
 
557
557
            # If we have made it to here then the logged in user can see the
558
558
            # bug, hence they can see any subscribers.
 
559
            # The security adaptor will do the job also but we don't want or
 
560
            # need the expense of running several complex SQL queries.
559
561
            precache_permission_for_objects(
560
562
                        self.request, 'launchpad.LimitedView', [person])
561
563
            subscriber = {
583
585
 
584
586
        others = list(bug.getIndirectSubscribers())
585
587
        # If we have made it to here then the logged in user can see the
586
 
        # bug, hence they can see any subscribers.
 
588
        # bug, hence they can see any indirect subscribers.
587
589
        include_private = self.user is not None
588
590
        if include_private:
589
591
            precache_permission_for_objects(