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