This check is redundant now that it's handled by the decorator.

This commit is contained in:
Christopher Allan Webber 2011-05-20 19:12:44 -05:00
parent 01674e105c
commit 5487efc401

View File

@ -55,10 +55,6 @@ def user_home(request, page):
@get_user_media_entry
def media_home(request, media):
"""'Homepage' of a MediaEntry()"""
# Check that media uploader and user correspond.
if media['uploader'].get('username') != request.matchdict['user']:
return exc.HTTPNotFound()
template = request.template_env.get_template(
'mediagoblin/user_pages/media.html')
return Response(