Commits

Zhang Huangbin committed f618996

Fix incorrect return moderator value: should be whole list instead of only the first element.

Comments (0)

Files changed (1)

         else:
             # Example of result data:
             # [('dn', {'listAllowedUser': ['user@domain.ltd']})]
-            return result[0][1][searchAttr][0]
+            return result[0][1][searchAttr]
 
     def __get_smtp_action(self, listname, sender):
         """return smtp_action"""