]> granicus.if.org Git - ejabberd/commitdiff
mod_muc_room: Let members see admin/owner JIDs
authorHolger Weiss <holger@zedat.fu-berlin.de>
Thu, 11 Feb 2016 21:52:27 +0000 (22:52 +0100)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Thu, 11 Feb 2016 21:52:27 +0000 (22:52 +0100)
Let members retrieve all affiliation lists in non-anonymous rooms, not
just the list of members.

src/mod_muc_room.erl

index f25f3365604564740cef727222b2999e36eb4e02..06fdf325f3af5a69e953e6037451c3e03ab81e6b 100644 (file)
@@ -2569,8 +2569,8 @@ process_iq_admin(From, get, Lang, SubEl, StateData) ->
                        SAffiliation ->
                            if (FAffiliation == owner) or
                                 (FAffiliation == admin) or
-                                ((FAffiliation == member) and (SAffiliation == member) and
-                                 not (StateData#state.config)#config.anonymous) ->
+                                ((FAffiliation == member) and not
+                                 (StateData#state.config)#config.anonymous) ->
                                   Items = items_with_affiliation(SAffiliation,
                                                                  StateData),
                                   {result, Items, StateData};