24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-02 21:17:12 +02:00

allow owner to subscribe/get its one node (EJAB-705)

SVN Revision: 1486
This commit is contained in:
Christophe Romain 2008-07-24 14:07:05 +00:00
parent 211966b42e
commit 55cfcafd92
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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),