From c2ca4e00dce9d946f875a6d0cf3cab208caa4eec Mon Sep 17 00:00:00 2001 From: Alexey Shchepin Date: Wed, 7 May 2003 13:18:09 +0000 Subject: [PATCH] * src/mod_muc/mod_muc_room.erl: Don't check permissions on disco info query processing SVN Revision: 103 --- ChangeLog | 5 +++++ src/mod_muc/mod_muc_room.erl | 21 ++++++--------------- 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/ChangeLog b/ChangeLog index 27b856f0e..7888dc736 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-05-07 Alexey Shchepin + + * src/mod_muc/mod_muc_room.erl: Don't check permissions on disco + info query processing + 2003-04-29 Alexey Shchepin * src/ejabberd_c2s.erl: Workaround to make SSL work properly diff --git a/src/mod_muc/mod_muc_room.erl b/src/mod_muc/mod_muc_room.erl index aeffd03bd..38ff37500 100644 --- a/src/mod_muc/mod_muc_room.erl +++ b/src/mod_muc/mod_muc_room.erl @@ -1695,21 +1695,12 @@ process_iq_disco_info(From, set, StateData) -> {error, ?ERR_NOT_ALLOWED}; process_iq_disco_info(From, get, StateData) -> - FAffiliation = get_affiliation(From, StateData), - FRole = get_role(From, StateData), - case (FRole /= none) or - (FAffiliation == admin) or - (FAffiliation == owner) of - true -> - {result, [{xmlelement, "identity", - [{"category", "conference"}, - {"type", "text"}, - {"name", get_title(StateData)}], []}, - {xmlelement, "feature", - [{"var", ?NS_MUC}], []}], StateData}; - _ -> - {error, ?ERR_NOT_ALLOWED} - end. + {result, [{xmlelement, "identity", + [{"category", "conference"}, + {"type", "text"}, + {"name", get_title(StateData)}], []}, + {xmlelement, "feature", + [{"var", ?NS_MUC}], []}], StateData}. process_iq_disco_items(From, set, StateData) ->