mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
allow owner to subscribe/get its one node (EJAB-705)
SVN Revision: 1486
This commit is contained in:
parent
211966b42e
commit
55cfcafd92
@ -1,3 +1,8 @@
|
||||
2008-07-23 Christophe Romain <christophe.romain@process-one.net>
|
||||
|
||||
* src/mod_pubsub/mod_pubsub.erl: Allow owner to subscribe/get its own
|
||||
node (EJAB-705)
|
||||
|
||||
2008-07-24 Badlop <badlop@process-one.net>
|
||||
|
||||
* doc/guide.tex: Document room options allow_visitor_nickchange
|
||||
|
@ -2013,7 +2013,8 @@ get_roster_info(OwnerUser, OwnerServer, {SubscriberUser, SubscriberServer, _}, A
|
||||
roster_get_jid_info, OwnerServer,
|
||||
{none, []},
|
||||
[OwnerUser, OwnerServer, {SubscriberUser, SubscriberServer, ""}]),
|
||||
PresenceSubscription = (Subscription == both) orelse (Subscription == from),
|
||||
PresenceSubscription = (Subscription == both) orelse (Subscription == from)
|
||||
orelse ({OwnerUser, OwnerServer} == {SubscriberUser, SubscriberServer}),
|
||||
RosterGroup = lists:any(fun(Group) ->
|
||||
lists:member(Group, AllowedGroups)
|
||||
end, Groups),
|
||||
|
Loading…
Reference in New Issue
Block a user