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

controllers/ 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(
if not auth.is_admin():
notifications = notifications.find(lambda row: row.expiration >=
return dict(message="News",
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