From 72a8674d20e15779a1e624ef5dbc09062e49c851 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 29 Feb 2024 01:56:52 +0200 Subject: [PATCH] allow ppl with y'all-seeing-eye to peruse the tab --- files/routes/notifications.py | 3 ++- files/templates/notifications.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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 %}