# HG changeset patch # User nishanth # Date 1271336258 -19800 # Node ID 345d4413b85c76ac31d1b827267da45c8f724e78 # Parent 0a4b2c49f7186a6e4aa3a5a26fcc5cbffcbaa3f0 added is_active filter in list_feedbacks view. diff -r 0a4b2c49f718 -r 345d4413b85c reg/views.py --- a/reg/views.py Thu Apr 15 18:23:21 2010 +0530 +++ b/reg/views.py Thu Apr 15 18:27:38 2010 +0530 @@ -372,7 +372,7 @@ """ user = request.user - if not user.is_authenticated(): + if not ( user.is_authenticated() and user.is_active ): return redirect('/reg') user_profile = user.get_profile() @@ -421,7 +421,7 @@ except Event.DoesNotExist: return redirect('/reg') - if not user in event.organizers.all(): + if not user in event.organizers.all() and user.is_active: return redirect('/reg') profile = user.get_profile()