~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/browser/bug.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-05-10 02:28:26 UTC
  • mfrom: (13009.1.1 rollback-13003)
  • Revision ID: launchpad@pqm.canonical.com-20110510022826-j8km5oz3il95n93g
[rs=wgrant][rollback=13003] Roll back r13003. It gives indirect
 subscribers to private bugs with duplicates, crashing most operations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
531
531
    @cachedproperty
532
532
    def user_should_see_mute_link(self):
533
533
        """Return True if the user should see the Mute link."""
534
 
        user_is_subscribed = False
535
534
        if features.getFeatureFlag('malone.advanced-subscriptions.enabled'):
536
535
            user_is_subscribed = (
537
536
                # Note that we don't have to check for isMuted(), since
540
539
                self.context.isSubscribed(self.user) or
541
540
                self.context.isSubscribedToDupes(self.user) or
542
541
                self.context.personIsAlsoNotifiedSubscriber(self.user))
543
 
        return user_is_subscribed
 
542
            return user_is_subscribed
 
543
        else:
 
544
            return False
544
545
 
545
546
    @cachedproperty
546
547
    def _bug_attachments(self):