diff options
author | Alexey Shchepin <alexey@process-one.net> | 2003-05-07 13:18:09 +0000 |
---|---|---|
committer | Alexey Shchepin <alexey@process-one.net> | 2003-05-07 13:18:09 +0000 |
commit | c2ca4e00dce9d946f875a6d0cf3cab208caa4eec (patch) | |
tree | 8481d9df5107e7f641063a9c6b335f33a4963fe0 /src | |
parent | * src/ejabberd_c2s.erl: Workaround to make SSL work properly (diff) |
* src/mod_muc/mod_muc_room.erl: Don't check permissions on disco
info query processing
SVN Revision: 103
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_muc/mod_muc_room.erl | 21 |
1 files changed, 6 insertions, 15 deletions
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) -> |