From 255ce8ad60ef6de28cdd1104c4c3fcd4b767f383 Mon Sep 17 00:00:00 2001 From: Darks Date: Wed, 11 Dec 2019 13:13:01 +0100 Subject: [PATCH] =?UTF-8?q?Corrige=20un=20bug=20remont=C3=A9=20par=20Lephe?= =?UTF-8?q?=20(#40)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/routes/forum/index.py | 2 +- app/templates/forum/forum.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/routes/forum/index.py b/app/routes/forum/index.py index 930a20a..6dee2b1 100644 --- a/app/routes/forum/index.py +++ b/app/routes/forum/index.py @@ -27,7 +27,7 @@ def forum_page(f): or ("/news" in f.url and current_user.is_authenticated and current_user.priv('write-news')) # Forum is not news and is a leaf: - or ("/news" not in f.name and not f.sub_forums)): + or ("/news" not in f.url and not f.sub_forums)): # First create the thread, then the comment, then the topic th = Thread() diff --git a/app/templates/forum/forum.html b/app/templates/forum/forum.html index d247d72..734dfe9 100644 --- a/app/templates/forum/forum.html +++ b/app/templates/forum/forum.html @@ -43,7 +43,7 @@ {% if (current_user.is_authenticated and current_user.priv('write-anywhere')) or ("/news" in f.url and current_user.is_authenticated and current_user.priv('write-news')) - or ("/news" not in f.name and not f.sub_forums) %} + or ("/news" not in f.url and not f.sub_forums) %}

Créer un nouveau sujet