From: Joar Wandborg Date: Tue, 10 Jan 2012 12:12:14 +0000 (+0100) Subject: Added check for request.user to media.html attachment-related conditional X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=914b8bcde3e01c2dd3e5679fb7733fc194b34d68;p=mediagoblin.git Added check for request.user to media.html attachment-related conditional --- diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html index 10525f4c..583e4ebd 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/media.html +++ b/mediagoblin/templates/mediagoblin/user_pages/media.html @@ -158,6 +158,7 @@ {% endif %} {% if app_config['allow_attachments'] + and request.user and (media.uploader == request.user._id or request.user.is_admin) %}