Only show valid roles on user roles page.
authorLennard de Rijk <ljvderijk@gmail.com>
Fri, 20 Mar 2009 14:17:10 +0000
changeset 1950 27c0ea479d8a
parent 1949 bcc52df68367
child 1951 921069bcc6e1
Only show valid roles on user roles page. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/views/models/user_self.py
--- a/app/soc/views/models/user_self.py	Fri Mar 20 14:07:57 2009 +0000
+++ b/app/soc/views/models/user_self.py	Fri Mar 20 14:17:10 2009 +0000
@@ -238,6 +238,7 @@
     # only select the roles for the current user
     filter = {
         'link_id': user.link_id,
+        'status': ['active', 'inactive']
         }
 
     contents = []