Skip to content
This repository was archived by the owner on May 19, 2021. It is now read-only.

Commit fabce09

Browse files
committed
Forum: new ACL, use has_perm instead of can
1 parent 40ea48f commit fabce09

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

inyoka_theme_default/templates/forum/forum.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
{{ macros.sidebar_item(_('6 hours'), href('forum', 'last6', forum.slug|e)) }}
6363
{% endcall %}
6464

65-
{% if USER.can('forum_edit') %}
65+
{% if USER.has_perm('forum.change_forum') %}
6666
{% call macros.sidebar_admin() %}
6767
{{ macros.sidebar_item(_('Edit forum'), forum|url('edit')) }}
6868
{% endcall %}

inyoka_theme_default/templates/forum/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
{{ macros.sidebar_item(_('6 hours'), href('forum', 'last6')) }}
3838
{% endcall %}
3939

40-
{% if USER.can('forum_edit') %}
40+
{% if USER.has_perm('forum.change_forum') %}
4141
{% call macros.sidebar_admin() %}
4242
{{ macros.sidebar_item(_('New Category'), href('forum', 'forum', 'new')) }}
4343
{% endcall %}
@@ -53,7 +53,7 @@ <h1>
5353
{{ category }}
5454
</a>
5555

56-
{% if USER.can('forum_edit') %}
56+
{% if USER.has_perm('forum.change_forum') %}
5757
<a class="forum-list-edit-category" href="{{ category|url('edit') }}">
5858
<span class="fa_icon-pencil-square-o"></span>
5959
</a>

0 commit comments

Comments
 (0)