reg/views.py
changeset 29 5fb4edd157e1
parent 28 14c5ccb18159
child 30 b85cb9cc9010
--- a/reg/views.py	Tue Apr 13 14:54:06 2010 +0530
+++ b/reg/views.py	Tue Apr 13 14:55:21 2010 +0530
@@ -273,7 +273,7 @@
     except Event.DoesNotExist:
         return redirect("/reg")
 
-    is_org = True if user in event.organizers.all() else False
+    is_org = True if user in event.organizers.all() and user.is_staff else False
 
     if is_org:
         day = event.feedback_status
@@ -293,7 +293,7 @@
     except Event.DoesNotExist:
         return redirect("/reg")
 
-    is_org = True if user in event.organizers.all() else False
+    is_org = True if user in event.organizers.all() and user.is_staff else False
 
     if is_org:
         event.registration_is_open = True
@@ -312,7 +312,7 @@
     except Event.DoesNotExist:
         return redirect("/reg")
 
-    is_org = True if user in event.organizers.all() else False
+    is_org = True if user in event.organizers.all() and user.is_staff else False
 
     if is_org:
         event.registration_is_open = False