* src/mod_muc/mod_muc_room.erl: Owner of a password protected room
must provide the password, like other participants (EJAB-867)
SVN Revision: 1906
2009-02-21 Badlop <badlop@process-one.net>
+ * src/mod_muc/mod_muc_room.erl: Owner of a password protected room
+ must provide the password, like other participants (EJAB-867)
+
* src/mod_muc/mod_muc_log.erl: Prevent XSS in MUC logs by
linkifying only a few known protocols (EJAB-850)
From, Err),
StateData;
{_, _, _, Role} ->
- case check_password(Affiliation, Els, StateData) of
+ case check_password(ServiceAffiliation, Els, StateData) of
true ->
NewState =
add_user_presence(
end.
check_password(owner, _Els, _StateData) ->
+ %% Don't check pass if user is owner in MUC service (access_admin option)
true;
-check_password(_Affiliation, Els, StateData) ->
+check_password(_ServiceAffiliation, Els, StateData) ->
case (StateData#state.config)#config.password_protected of
false ->
true;