Corrige un bug remonté par Lephe (#40)

This commit is contained in:
Darks 2019-12-11 13:13:01 +01:00
parent 415cfd8d8f
commit 255ce8ad60
Signed by: Darks
GPG Key ID: F61F10FA138E797C
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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) %}
<div class=form>
<h2>Créer un nouveau sujet</h2>
<form action="" method="post" enctype="multipart/form-data">