Added check for request.user to media.html attachment-related conditional

This commit is contained in:
Joar Wandborg 2012-01-10 13:12:14 +01:00
parent c2d6792ddb
commit 914b8bcde3

View File

@ -158,6 +158,7 @@
</ul>
{% endif %}
{% if app_config['allow_attachments']
and request.user
and (media.uploader == request.user._id
or request.user.is_admin) %}
<p>