~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

[r=wgrant][rollback=13154] Revert r13154. It breaks bugs with
 duplicate team subscriptions. Or something.

Show diffs side-by-side

added added

removed removed

Lines of Context:
543
543
    @cachedproperty
544
544
    def user_should_see_mute_link(self):
545
545
        """Return True if the user should see the Mute link."""
546
 
        user_is_subscribed = False
547
546
        if features.getFeatureFlag('malone.advanced-subscriptions.enabled'):
548
547
            user_is_subscribed = self.user is not None and (
549
548
                self.context.isMuted(self.user) or
550
549
                self.context.isSubscribed(self.user) or
551
550
                self.context.isSubscribedToDupes(self.user) or
552
551
                self.context.personIsAlsoNotifiedSubscriber(self.user))
553
 
        return user_is_subscribed
 
552
            return user_is_subscribed
 
553
        else:
 
554
            return False
554
555
 
555
556
    @cachedproperty
556
557
    def _bug_attachments(self):