Commit 8bed568c authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Modified #canAccess to check if the service is enabled or not. JM-361


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1748 b35dd754-fafc-0310-a699-88a17e54d16e
parent 4e7c4762
......@@ -78,6 +78,12 @@ public class RemoteServerManager {
* local server.
*/
public static boolean canAccess(String domain) {
// If s2s is disabled then it is not possible to send packets to remote servers or
// receive packets from remote servers
if (!JiveGlobals.getBooleanProperty("xmpp.server.socket.active", true)) {
return false;
}
// By default there is no permission defined for the XMPP entity
Permission permission = null;
......
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