Corrige un bug remonté par Lephe (#40)
This commit is contained in:
parent
415cfd8d8f
commit
255ce8ad60
|
@ -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()
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue