Product.userCanView doesn't consider team memberships
Bug #1061933 reported by
William Grant
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Abel Deuring |
Bug Description
Product.userCanView does this:
738 + grants_for_user = getUtility(
739 + [(policy, user)])
This only finds grants for the user directly, not anything through team memberships. AccessPolicy* provide access to the raw models, with SharingService providing high-level APIs. SharingService.
Related branches
lp:~adeuring/launchpad/bug-1067736
- Deryck Hodge (community): Approve
-
Diff: 88 lines (+20/-24)3 files modifiedlib/lp/app/browser/tests/test_launchpad.py (+0/-3)
lib/lp/registry/model/product.py (+10/-18)
lib/lp/registry/tests/test_product.py (+10/-3)
tags: | removed: disclosure |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fixed in stable r16203 <http:// bazaar. launchpad. net/~launchpad- pqm/launchpad/ stable/ revision/ 16203>.