Obsolete code-structure/comments are confusing
Bug #674069 reported by
Michael Nelson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ratings and Reviews server |
Fix Released
|
Medium
|
Anthony Lenton |
Bug Description
There's quite a bit of code and comments that indicating that to moderate reviews a user needs to be a member of a specific Launchpad group (rnr-moderators), but the current implementation of LPAuthorizer.
I'm assuming the implementation is correct (much nicer than requiring a LP group membership and having to verify via API etc.), but we should remove all the old code and comments (I was quite confused).
If this is the case, we should also remove LPAuthorizer.
description: | updated |
tags: | added: proj-rnr-10.12 |
Changed in rnr-server: | |
status: | In Progress → Fix Committed |
tags: | added: kb-defect |
tags: | added: qa-untestable |
Changed in rnr-server: | |
status: | Fix Committed → Fix Released |
Changed in rnr-server: | |
milestone: | none → 10.12 |
To post a comment you must log in.
My memory is a bit rusty, but I'm pretty sure the way this code works (or is supposed to work) is that the user uses openid for the moderation. So the django app syncs the group membership with launchpad automatically so only a local check against the DB is needed.