Don't allow guests to refresh poster images
This commit is contained in:
@@ -3217,7 +3217,9 @@ class WebInterface(object):
|
|||||||
logger.error('No image input received.')
|
logger.error('No image input received.')
|
||||||
return
|
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:
|
if rating_key and not img:
|
||||||
img = '/library/metadata/%s/thumb/1337' % rating_key
|
img = '/library/metadata/%s/thumb/1337' % rating_key
|
||||||
|
Reference in New Issue
Block a user