From daf371466a3e0951d8cd3bd5b22ad076c668983c Mon Sep 17 00:00:00 2001 From: mdipierro Date: Fri, 20 Mar 2015 11:05:15 -0500 Subject: [PATCH] fixed issue #789, callable next --- gluon/tools.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gluon/tools.py b/gluon/tools.py index 7a185f21..22bbbd44 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -2361,6 +2361,8 @@ class Auth(object): if next is DEFAULT: # important for security next = settings.login_next + if callable(next): + next = next() user_next = snext if user_next: external = user_next.split('://')