Only show valid roles on user roles page.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- 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 = []