summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2022-09-01 12:53:24 +0200
committerBadlop <badlop@process-one.net>2022-09-01 13:02:54 +0200
commit808def7d32fc5fed40d982d26e6f0ff028a736c7 (patch)
treecf3b7ae7ae0b9c627e28fd03173ee549ba63a958
parentAdd definition to detect OTP older than 25, used by ejabberd_auth_http (diff)
The #roster_item.ask allowed values are subscribe|undefined
-rw-r--r--src/mod_shared_roster_ldap.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mod_shared_roster_ldap.erl b/src/mod_shared_roster_ldap.erl
index 36ed63c9..ebcb77ab 100644
--- a/src/mod_shared_roster_ldap.erl
+++ b/src/mod_shared_roster_ldap.erl
@@ -118,8 +118,7 @@ get_user_roster(Items, US) ->
case dict:find(US1, SRUsers1) of
{ok, GroupNames} ->
{Item#roster_item{subscription = both,
- groups = Item#roster_item.groups ++ GroupNames,
- ask = none},
+ groups = Item#roster_item.groups ++ GroupNames},
dict:erase(US1, SRUsers1)};
error ->
{Item, SRUsers1}