~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/model/bugtask.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2012-01-06 23:29:30 UTC
  • mfrom: (14646.3.2 unassign-bugs-0)
  • Revision ID: launchpad@pqm.canonical.com-20120106232930-0t6v7pj0nn2k5e89
[r=bac][bug=910876] Permit logged in users to unassign bugs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1093
1093
            return self.userHasBugSupervisorPrivileges(user)
1094
1094
 
1095
1095
    def userCanUnassign(self, user):
1096
 
        """True if user can set the assignee to None.
1097
 
 
1098
 
        This option not shown for regular users unless they or their teams
1099
 
        are the assignees. Project owners, drivers, bug supervisors and
1100
 
        Launchpad admins can always unassign.
1101
 
        """
1102
 
        return user is not None and (
1103
 
            user.inTeam(self.assignee) or
1104
 
            self.userHasBugSupervisorPrivileges(user))
 
1096
        """See `IBugTask`."""
 
1097
        return user is not None
1105
1098
 
1106
1099
    def canTransitionToAssignee(self, assignee):
1107
1100
        """See `IBugTask`."""