taskapp/views/user.py
changeset 145 0c97a02b9bdb
parent 143 796ff9e279a8
child 148 665eaf56e1d0
--- a/taskapp/views/user.py	Sun Feb 28 14:58:11 2010 +0530
+++ b/taskapp/views/user.py	Sun Feb 28 15:59:47 2010 +0530
@@ -279,7 +279,7 @@
     user_profile = user.get_profile()
     user_rights = user_profile.rights
 
-    user_can_view = True if user_rights == "AD" or ( user_rights == "MG" and role in ["mg", "dv"] ) else False
+    user_can_view = True if user_rights == "AD" or ( user_rights == "MG" and role in ["MG", "DV"] ) else False
 
     if user_can_view:
         if role == "DV":