EJAB-624: fixes mod_muc_room:is_visitor/2 to use get_role not get_affiliation

SVN Revision: 1535
This commit is contained in:
Geoff Cant 2008-08-23 23:23:51 +00:00
parent 5d6fe1a055
commit 2cda62dceb
2 changed files with 6 additions and 9 deletions

View File

@ -1,3 +1,8 @@
2008-08-24 Geoff Cant <gcant@process-one.net>
* src/mod_mud/mod_muc_room.erl: is_visitor/2 fix - use get_role
not get_affiliation
2008-08-22 Badlop <badlop@process-one.net>
* src/ejabberd_router.erl: Fix call to mnesia match_object

View File

@ -1237,15 +1237,7 @@ get_default_role(Affiliation, StateData) ->
end.
is_visitor(Jid, StateData) ->
case get_affiliation(Jid, StateData) of
none ->
case get_default_role(none, StateData) of
visitor -> true;
_ -> false
end;
visitor -> true;
_ -> false
end.
get_role(Jid, StateData) =:= visitor.
get_max_users(StateData) ->
MaxUsers = (StateData#state.config)#config.max_users,