summaryrefslogtreecommitdiffstats
path: root/templates/news/view.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/view.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/view.html')
-rw-r--r--templates/news/view.html4
1 files changed, 2 insertions, 2 deletions
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>