mirror of
https://github.com/ae-utbm/sith.git
synced 2026-06-07 00:29:20 +00:00
Add some better right management to forum
This commit is contained in:
@@ -7,12 +7,16 @@
|
||||
<a href="{{ url('forum:main') }}">Forum</a> >
|
||||
</p>
|
||||
<h3>{% trans %}Forum{% endtrans %}</h3>
|
||||
<a href="{{ url('forum:new_forum') }}">New forum</a>
|
||||
<p>
|
||||
{% if user.is_in_group(settings.SITH_GROUP_FORUM_ADMIN_ID) or user.is_in_group(settings.SITH_GROUP_COM_ADMIN_ID) %}
|
||||
<a href="{{ url('forum:new_forum') }}">New forum</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
{% for f in forum_list %}
|
||||
<div style="padding: 4px; margin: 4px">
|
||||
{{ display_forum(f) }}
|
||||
{{ display_forum(f, user) }}
|
||||
{% for c in f.children.all() %}
|
||||
{{ display_forum(c) }}
|
||||
{{ display_forum(c, user) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user