~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

[r=gmb][bug=772609] The mute link will now appear for members of
        teams that are structurally subscribed to a bug or its duplicates

Show diffs side-by-side

added added

removed removed

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