diff data/plugin/action/RecommendPage.py @ 648:2f092fcc3999

macro: RecomendedPage ignore disabled user
author Reimar Bauer <rb.proj@gmail.com>
date Mon, 24 Aug 2015 09:31:25 +0200
parents 438f1d16e63f
children 127da830be6c
line wrap: on
line diff
--- a/data/plugin/action/RecommendPage.py	Fri Feb 06 08:41:20 2015 +0100
+++ b/data/plugin/action/RecommendPage.py	Mon Aug 24 09:31:25 2015 +0200
@@ -79,7 +79,7 @@
         return
 
     users = user.getUserList(request)
-    html = ["<OPTION>%s</OPTION>" % user.User(request, id=uid).name for uid in users]
+    html = ["<OPTION>%s</OPTION>" % user.User(request, id=uid).name for uid in users if not user.User(request, id=uid).disabled]
     html.sort()
 
     formhtml = """