More template filters for Libraries, Users, and Sync

This commit is contained in:
JonnyWong16 2016-04-24 00:59:01 -07:00
parent 4f8a5211f8
commit 89694b5069
13 changed files with 74 additions and 43 deletions

View file

@ -58,7 +58,7 @@ def check_auth(*args, **kwargs):
for condition in conditions:
# A condition is just a callable that returns true or false
if not condition():
raise cherrypy.HTTPRedirect("auth/login")
raise cherrypy.HTTPRedirect(plexpy.HTTP_ROOT)
else:
raise cherrypy.HTTPRedirect("auth/login")