mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
* src/mod_muc/mod_muc_room.erl: Don't check permissions on disco
info query processing SVN Revision: 103
This commit is contained in:
parent
5b1379fe59
commit
c2ca4e00dc
@ -1,3 +1,8 @@
|
|||||||
|
2003-05-07 Alexey Shchepin <alexey@sevcom.net>
|
||||||
|
|
||||||
|
* src/mod_muc/mod_muc_room.erl: Don't check permissions on disco
|
||||||
|
info query processing
|
||||||
|
|
||||||
2003-04-29 Alexey Shchepin <alexey@sevcom.net>
|
2003-04-29 Alexey Shchepin <alexey@sevcom.net>
|
||||||
|
|
||||||
* src/ejabberd_c2s.erl: Workaround to make SSL work properly
|
* src/ejabberd_c2s.erl: Workaround to make SSL work properly
|
||||||
|
@ -1695,21 +1695,12 @@ process_iq_disco_info(From, set, StateData) ->
|
|||||||
{error, ?ERR_NOT_ALLOWED};
|
{error, ?ERR_NOT_ALLOWED};
|
||||||
|
|
||||||
process_iq_disco_info(From, get, StateData) ->
|
process_iq_disco_info(From, get, StateData) ->
|
||||||
FAffiliation = get_affiliation(From, StateData),
|
{result, [{xmlelement, "identity",
|
||||||
FRole = get_role(From, StateData),
|
[{"category", "conference"},
|
||||||
case (FRole /= none) or
|
{"type", "text"},
|
||||||
(FAffiliation == admin) or
|
{"name", get_title(StateData)}], []},
|
||||||
(FAffiliation == owner) of
|
{xmlelement, "feature",
|
||||||
true ->
|
[{"var", ?NS_MUC}], []}], StateData}.
|
||||||
{result, [{xmlelement, "identity",
|
|
||||||
[{"category", "conference"},
|
|
||||||
{"type", "text"},
|
|
||||||
{"name", get_title(StateData)}], []},
|
|
||||||
{xmlelement, "feature",
|
|
||||||
[{"var", ?NS_MUC}], []}], StateData};
|
|
||||||
_ ->
|
|
||||||
{error, ?ERR_NOT_ALLOWED}
|
|
||||||
end.
|
|
||||||
|
|
||||||
|
|
||||||
process_iq_disco_items(From, set, StateData) ->
|
process_iq_disco_items(From, set, StateData) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user