[Fusionforge-commits] r14642 - in trunk: . src/plugins/moinmoin/lib

Roland Mas lolando at fusionforge.org
Fri Oct 14 18:06:12 CEST 2011


Author: lolando
Date: 2011-10-14 18:06:12 +0200 (Fri, 14 Oct 2011)
New Revision: 14642

Modified:
   trunk/
   trunk/src/plugins/moinmoin/lib/fusionforge.py
Log:
Fixed get_super_users()

Modified: trunk/src/plugins/moinmoin/lib/fusionforge.py
===================================================================
--- trunk/src/plugins/moinmoin/lib/fusionforge.py	2011-10-14 16:06:01 UTC (rev 14641)
+++ trunk/src/plugins/moinmoin/lib/fusionforge.py	2011-10-14 16:06:12 UTC (rev 14642)
@@ -75,7 +75,7 @@
     def get_super_users(self):
         conn = self.fflink.get_connection()
         cur = conn.cursor()
-        cur.execute("SELECT distinct(u.user_name) from users u, pfo_user_role pur, pfo_role pr, pfo_role_setting prs WHERE u.user_id = pur.user_id AND pur.role_id = pr.role_id AND pr.role_id = prs.role_id AND prs.section_name='forge_admin'")
+        cur.execute("SELECT distinct(u.user_name) from users u, pfo_user_role pur, pfo_role pr, pfo_role_setting prs WHERE u.user_id = pur.user_id AND pur.role_id = pr.role_id AND pr.role_id = prs.role_id AND prs.section_name='forge_admin' AND prs.perm_val >= 1")
         admins = []
         for record in cur:
             admins.append(record[0])




More information about the Fusionforge-commits mailing list