Allow refreshing images if not using sessions

This commit is contained in:
JonnyWong16 2016-10-16 13:08:36 -07:00
parent 1f23654735
commit a322ec2b23

View file

@ -3289,8 +3289,7 @@ class WebInterface(object):
refresh = False refresh = False
if kwargs.get('refresh'): if kwargs.get('refresh'):
mo = member_of('admin') refresh = False if get_session_user_id() else True
refresh = True if mo() else False
kwargs['refresh'] = refresh kwargs['refresh'] = refresh