aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/templates
diff options
context:
space:
mode:
authorSebastian Spaeth <Sebastian@SSpaeth.de>2013-12-12 17:13:48 +0100
committerSebastian Spaeth <Sebastian@SSpaeth.de>2013-12-12 17:13:48 +0100
commit39fbb83490ccb30858d62f35f6a1f4c1813b23d2 (patch)
treee85ace2d51a7d6d6178d556176161b8a2df7ccf1 /mediagoblin/templates
parent14103077e911277f3af6509d1ef7d0ccc8ac146a (diff)
downloadmediagoblin-39fbb83490ccb30858d62f35f6a1f4c1813b23d2.tar.lz
mediagoblin-39fbb83490ccb30858d62f35f6a1f4c1813b23d2.tar.xz
mediagoblin-39fbb83490ccb30858d62f35f6a1f4c1813b23d2.zip
Convert blog plugin to use new privileges system
there is no user.is_admin anymore. Adapt to use the new privileges system.
Diffstat (limited to 'mediagoblin/templates')
-rw-r--r--mediagoblin/templates/mediagoblin/user_pages/blog_media.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/templates/mediagoblin/user_pages/blog_media.html b/mediagoblin/templates/mediagoblin/user_pages/blog_media.html
index 25dd4783..c6eedee0 100644
--- a/mediagoblin/templates/mediagoblin/user_pages/blog_media.html
+++ b/mediagoblin/templates/mediagoblin/user_pages/blog_media.html
@@ -69,7 +69,7 @@
</div>
{% if request.user and
(media.uploader == request.user.id or
- request.user.is_admin) %}
+ request.user.has_privilege('admin')) %}
{% set edit_url = request.urlgen('mediagoblin.media_types.blog.blogpost.edit',
blog_slug=media.media_manager.get_blog_by_blogpost().slug,
user=request.user.username, blog_post_slug=media.slug) %}