diff --git a/files/routes/notifications.py b/files/routes/notifications.py index 05b69917e..5073cb41a 100644 --- a/files/routes/notifications.py +++ b/files/routes/notifications.py @@ -275,7 +275,8 @@ def notifications_modactions(v): def notifications_offsite(v): page = get_page() - if not v.can_view_offsite_mentions: abort(403) + if v.offsite_mentions == None: + abort(403) listing = g.db.query(Comment).filter( Comment.body_html.like('

New site mention%'), diff --git a/files/templates/notifications.html b/files/templates/notifications.html index f7747da69..9c571adab 100644 --- a/files/templates/notifications.html +++ b/files/templates/notifications.html @@ -38,7 +38,7 @@ {% endif %} - {% if v.can_view_offsite_mentions %} + {% if v.offsite_mentions != None %}