Commit 17c0d6cf authored by Dave Cridland's avatar Dave Cridland Committed by GitHub

Merge pull request #791 from GregDThomas/component-subscribe

Allow components to subscribe to nodes
parents 8b0d00f3 bbf80995
......@@ -543,7 +543,7 @@ public class PubSubEngine {
return;
}
// Check if the subscriber is an anonymous user
if (!UserManager.getInstance().isRegisteredUser(subscriberJID)) {
if (!isComponent(subscriberJID) && !UserManager.getInstance().isRegisteredUser(subscriberJID)) {
// Anonymous users cannot subscribe to the node. Return forbidden error
sendErrorPacket(iq, PacketError.Condition.forbidden, null);
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment