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
1 changed files with 1 additions and 1 deletions

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,