Mercurial > farol
changeset 20:94bc7fe98b85
Redirect to 'welcome' when no document is there.
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Wed, 01 Oct 2014 09:40:11 +0200 |
parents | 56cab60172ad |
children | e66fd84439bd |
files | farol/session.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/farol/session.py Wed Oct 01 09:29:38 2014 +0200 +++ b/farol/session.py Wed Oct 01 09:40:11 2014 +0200 @@ -59,7 +59,6 @@ @wraps(f) def decorated_function(*args, **kwargs): if not has_current(): - flash('Operation invalid without document', 'warning') - return redirect(url_for('new')) + return redirect(url_for('welcome')) return f(*args, **kwargs) return decorated_function