Bug.unsubscribe should check BugSubscription.canBeUnsubscribedByUser

Bug #374821 reported by Deryck Hodge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Deryck Hodge

Bug Description

The unsubscribe method on a Bug should use the new canBeUnsubscribedByUser method on BugSubscription, rather than just checking against the person. This needs to be done before bug 281028 can be fixed.

Deryck Hodge (deryck)
Changed in malone:
assignee: nobody → Deryck Hodge (deryck)
status: New → In Progress
Revision history for this message
Eleanor Berger (intellectronica) wrote :

Just to be more precise, if canBeUnsubscribedByUser returns False, the method should raise an exception annotated with webservice_error unauthorized.

Deryck Hodge (deryck)
Changed in malone:
status: In Progress → Fix Committed
tags: added: story-inline-team-bug-unsubscription
Deryck Hodge (deryck)
Changed in malone:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.