From 00e9dce4db7df23f2fcf43ea8c46ee0d8ca5e262 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 24 Sep 2010 11:12:31 -0500 Subject: 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 --- templates/news/list.html | 8 ++++---- templates/news/view.html | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'templates/news') diff --git a/templates/news/list.html b/templates/news/list.html index 26e8c268..a72a2dda 100644 --- a/templates/news/list.html +++ b/templates/news/list.html @@ -6,7 +6,7 @@

News Archives

- {% if perms.main.add_news %} + {% if perms.news.add_news %} @@ -20,7 +20,7 @@

News Archives

Published Title Author - {% if perms.main.change_news %} + {% if perms.news.change_news %} {% endif %} @@ -32,12 +32,12 @@

News Archives

{{ item.title }} {{ item.author.get_full_name }} - {% if perms.main.change_news %} + {% if perms.news.change_news %} Edit {% endif %} - {% if perms.main.delete_news %} + {% if perms.news.delete_news %}   Delete diff --git a/templates/news/view.html b/templates/news/view.html index 86a412de..7788dece 100644 --- a/templates/news/view.html +++ b/templates/news/view.html @@ -7,10 +7,10 @@

News: {{ news.title }}

- {% if perms.main.change_news %} + {% if perms.news.change_news %} -- cgit v1.2.3-54-g00ecf