mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Send privileges if at least one of them is set, don't require all to be set
This commit is contained in:
parent
8a05c4ee27
commit
df8888ab38
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user