summaryrefslogtreecommitdiffstats
path: root/templates/news
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
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')
-rw-r--r--templates/news/list.html8
-rw-r--r--templates/news/view.html4
2 files changed, 6 insertions, 6 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>
diff --git a/templates/news/view.html b/templates/news/view.html
index 86a412d..7788dec 100644
--- a/templates/news/view.html
+++ b/templates/news/view.html
@@ -7,10 +7,10 @@
<h2>News: {{ news.title }}</h2>
- {% if perms.main.change_news %}
+ {% if perms.news.change_news %}
<ul class="admin-actions">
<li><a href="edit/" title="Edit this article">Edit News Item</a></li>
- {% if perms.main.delete_news %}
+ {% if perms.news.delete_news %}
<li><a href="delete/" title="Delete this article">Delete News Item</a></li>
{% endif %}
</ul>