Don't allow guests to refresh poster images

This commit is contained in:
JonnyWong16 2016-06-20 23:28:45 -07:00
parent 8c6e142314
commit 03de680915

View file

@ -3217,7 +3217,9 @@ class WebInterface(object):
logger.error('No image input received.')
return
refresh = True if refresh == 'true' else False
if refresh:
mo = member_of('admin')
refresh = True if mo() else False
if rating_key and not img:
img = '/library/metadata/%s/thumb/1337' % rating_key