~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/doc/private-team-visibility.txt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-15 10:35:32 UTC
  • mfrom: (14517.1.3 new-bzr)
  • Revision ID: launchpad@pqm.canonical.com-20111215103532-q2m4uyk0r8ugiayx
[r=sinzui, poolie][bug=509016] Always load foreign plugins,
 but restrict probers to avoid accidentally opening foreign branches.
 (re-land)

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
    >>> check_permission('launchpad.LimitedView', priv_team)
131
131
    True
132
132
 
133
 
User who can see a branch can also see private teams for which reviews have
134
 
been requested.
135
 
    >>> some_person = factory.makePerson()
136
 
    >>> login_person(priv_owner)
137
 
    >>> product = factory.makeProduct()
138
 
    >>> target_branch = factory.makeBranch(
139
 
    ...     owner=priv_owner, private=True, product=product)
140
 
    >>> source_branch = factory.makeBranch(
141
 
    ...     owner=priv_owner, product=product)
142
 
    >>> bmp = factory.makeBranchMergeProposal(
143
 
    ...     source_branch=source_branch, target_branch=target_branch,
144
 
    ...     reviewer=priv_team, registrant=priv_owner)
145
 
    >>> login_person(some_person)
146
 
    >>> check_permission('launchpad.LimitedView', priv_team)
147
 
    False
148
 
    >>> login_person(priv_owner)
149
 
    >>> sub = factory.makeBranchSubscription(
150
 
    ...     branch=target_branch, person=some_person,
151
 
    ...     subscribed_by=priv_owner)
152
 
 
153
 
    >>> login_person(some_person)
154
 
    >>> check_permission('launchpad.LimitedView', priv_team)
155
 
    True
156
 
 
157
133
Subscribers to the teams private PPA have limited view permission.
158
134
 
159
135
    >>> login_person(priv_owner)