Commit fcdeb58a authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Treat components as sysadmins. JM-931

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@6624 b35dd754-fafc-0310-a699-88a17e54d16e
parent 32f2a4c2
......@@ -22,6 +22,7 @@ import org.jivesoftware.wildfire.RoutableChannelHandler;
import org.jivesoftware.wildfire.RoutingTable;
import org.jivesoftware.wildfire.XMPPServer;
import org.jivesoftware.wildfire.auth.UnauthorizedException;
import org.jivesoftware.wildfire.component.InternalComponentManager;
import org.jivesoftware.wildfire.container.BasicModule;
import org.jivesoftware.wildfire.disco.DiscoInfoProvider;
import org.jivesoftware.wildfire.disco.DiscoItemsProvider;
......@@ -195,7 +196,8 @@ public class PubSubModule extends BasicModule implements ServerItemsProvider, Di
}
public boolean isServiceAdmin(JID user) {
return sysadmins.contains(user.toBareJID()) || allowedToCreate.contains(user.toBareJID());
return sysadmins.contains(user.toBareJID()) || allowedToCreate.contains(user.toBareJID()) ||
InternalComponentManager.getInstance().getComponent(user) != null;
}
public boolean isInstantNodeSupported() {
......
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