Fix unable to view database status when auth is disabled

This commit is contained in:
JonnyWong16 2019-06-13 21:57:05 -07:00
parent 13579b8140
commit e4be5a716f
3 changed files with 8 additions and 5 deletions

View file

@ -5884,7 +5884,7 @@ class WebInterface(object):
status = {'result': 'success', 'message': 'Ok'}
if args or kwargs:
if not cherrypy.request.path_info == '/api/v2':
if not cherrypy.request.path_info == '/api/v2' and plexpy.AUTH_ENABLED:
cherrypy.request.config['auth.require'] = []
check_auth()