changeset 1413:caa408751799

merged
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 07 Jul 2012 20:19:20 +0200
parents 2e939e798a47 (current diff) 9765ae56ee41 (diff)
children 614005b5edb3
files MoinMoin/apps/frontend/views.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/frontend/views.py	Sat Jul 07 21:32:23 2012 +0400
+++ b/MoinMoin/apps/frontend/views.py	Sat Jul 07 20:19:20 2012 +0200
@@ -1411,6 +1411,9 @@
     )
     forms = dict()
 
+    if not flaskg.user.valid:
+        return redirect(url_for('.login'))
+
     if request.method == 'POST':
         part = request.form.get('part')
         if part not in form_classes: