This check is redundant now that it's handled by the decorator.
This commit is contained in:
parent
01674e105c
commit
5487efc401
@ -55,10 +55,6 @@ def user_home(request, page):
|
|||||||
@get_user_media_entry
|
@get_user_media_entry
|
||||||
def media_home(request, media):
|
def media_home(request, media):
|
||||||
"""'Homepage' of a MediaEntry()"""
|
"""'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(
|
template = request.template_env.get_template(
|
||||||
'mediagoblin/user_pages/media.html')
|
'mediagoblin/user_pages/media.html')
|
||||||
return Response(
|
return Response(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user