summaryrefslogtreecommitdiffstats
path: root/templates/news/list.html
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-09-24 18:12:31 +0200
committerDan McGee <dan@archlinux.org>2010-09-24 18:12:31 +0200
commit00e9dce4db7df23f2fcf43ea8c46ee0d8ca5e262 (patch)
tree07f6f8cf31f73c3337be306573cffc2838d3640a /templates/news/list.html
parentd0170b7fc90e31bd75c97d5c55de7b5dec29cf53 (diff)
downloadarchweb-00e9dce4db7df23f2fcf43ea8c46ee0d8ca5e262.tar.gz
archweb-00e9dce4db7df23f2fcf43ea8c46ee0d8ca5e262.tar.xz
Fix news permission checking in templates
We were still looking at the permissions on the main application; these need to be updated to point at the news application instead. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/news/list.html')
-rw-r--r--templates/news/list.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/news/list.html b/templates/news/list.html
index 26e8c26..a72a2dd 100644
--- a/templates/news/list.html
+++ b/templates/news/list.html
@@ -6,7 +6,7 @@
<h2>News Archives</h2>
- {% if perms.main.add_news %}
+ {% if perms.news.add_news %}
<ul class="admin-actions">
<li><a href="/news/add/" title="Add a news item">Add News Item</a></li>
</ul>
@@ -20,7 +20,7 @@
<th>Published</th>
<th>Title</th>
<th>Author</th>
- {% if perms.main.change_news %}
+ {% if perms.news.change_news %}
<th></th>
{% endif %}
</tr>
@@ -32,12 +32,12 @@
<td class="wrap"><a href="{{ item.get_absolute_url }}"
title="View: {{ item.title }}">{{ item.title }}</a></td>
<td>{{ item.author.get_full_name }}</td>
- {% if perms.main.change_news %}
+ {% if perms.news.change_news %}
<td>
<a href="{{ item.get_absolute_url }}edit/"
title="Edit: {{ item.title }}">Edit</a>
{% endif %}
- {% if perms.main.delete_news %}
+ {% if perms.news.delete_news %}
&nbsp;&nbsp;<a href="{{ item.get_absolute_url }}delete/"
title="Delete: {{ item.title }}">Delete</a>
</td>