~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/blueprints/browser/specificationsubscription.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:
158
158
            else:
159
159
                cannot_unsubscribe.append(subscription)
160
160
        # Cache permission so private subscribers can be viewed.
 
161
        # The security adaptor will do the job also but we don't want or need
 
162
        # the expense of running several complex SQL queries.
161
163
        precache_permission_for_objects(
162
164
                    self.request, 'launchpad.LimitedView', subscribers)
163
165