Added check for request.user to media.html attachment-related conditional
authorJoar Wandborg <git@wandborg.com>
Tue, 10 Jan 2012 12:12:14 +0000 (13:12 +0100)
committerJoar Wandborg <git@wandborg.com>
Tue, 10 Jan 2012 12:12:14 +0000 (13:12 +0100)
mediagoblin/templates/mediagoblin/user_pages/media.html

index 10525f4c4166b8179c0be7505d92a5817c578c44..583e4ebd6d2f9eecd1691ef5d014bf7700ee38cc 100644 (file)
       </ul>
     {% endif %}
     {% if app_config['allow_attachments']
+          and request.user
           and (media.uploader == request.user._id
                or request.user.is_admin) %}
       <p>