Commit 8d7b79a8 authored by HERBERT Ryan's avatar HERBERT Ryan
Browse files

default.py alter default redirect

The default redirect for non-admin users is now set to the new
sample_set list with type=patient
parent 03f8c87c
......@@ -33,7 +33,11 @@ def help():
#########################################################################
## default home page
def home():
res = {"redirect" : URL('admin' if auth.is_admin() else 'patient', 'index', scheme=True, host=True)}
if auth.is_admin():
redirect = URL('admin', 'index', scheme=True, host=True)
else:
redirect = URL('sample_set', 'all', vars={'type': 'patient'}, scheme=True, host=True)
res = {"redirect" : redirect}
return gluon.contrib.simplejson.dumps(res, separators=(',',':'))
def logger():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment