Commit df78a7d3 authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil Team

controllers/notification.py: Users can see expired notifications

parent 328a570d
......@@ -32,8 +32,6 @@ def index():
cache.ram.clear(regex=NOTIFICATION_CACHE_PREFIX + str(user_id))
notifications = db(db.notification).select(orderby=~db.notification.id)
if not auth.is_admin():
notifications = notifications.find(lambda row: row.expiration >= date.today())
return dict(message="News",
query=query,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment