~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

[release-critical=gary][r=bac][ui=none][bug=772609,
        792591] Anonymous users will no longer receive a permission-related
        OOPS when visiting certain bug pages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
506
506
 
507
507
    @property
508
508
    def current_user_subscription_class(self):
 
509
        if not self.user:
 
510
            return 'subscribed-false dup-subscribed-false'
 
511
 
509
512
        bug = self.context
510
513
 
511
514
        if bug.personIsSubscribedToDuplicate(self.user):
521
524
 
522
525
    @property
523
526
    def current_user_mute_class(self):
 
527
        if not self.user:
 
528
            return 'muted-false hidden %s' % (
 
529
                self.current_user_subscription_class)
 
530
 
524
531
        bug = self.context
525
532
        subscription_class = self.current_user_subscription_class
526
533
        if self.user_should_see_mute_link: