24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-02 21:17:12 +02:00

Send privileges if at least one of them is set, don't require all to be set

This commit is contained in:
Paweł Chmielowski 2018-01-09 15:50:16 +01:00
parent 8a05c4ee27
commit df8888ab38

View File

@ -210,7 +210,7 @@ handle_cast({component_connected, Host}, State) ->
RosterPerm = get_roster_permission(ServerHost, Host),
PresencePerm = get_presence_permission(ServerHost, Host),
MessagePerm = get_message_permission(ServerHost, Host),
if RosterPerm /= none, PresencePerm /= none, MessagePerm /= none ->
if RosterPerm /= none; PresencePerm /= none; MessagePerm /= none ->
Priv = #privilege{perms = [#privilege_perm{access = message,
type = MessagePerm},
#privilege_perm{access = roster,