mirror of
https://github.com/processone/ejabberd
synced 2025-10-06 03:50:15 +02: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue