Commit 1cb16dbc authored by Andrew Wright's avatar Andrew Wright Committed by andrew

allow calls by components.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@6406 b35dd754-fafc-0310-a699-88a17e54d16e
parent c6b27514
...@@ -16,6 +16,7 @@ import org.jivesoftware.wildfire.user.UserNotFoundException; ...@@ -16,6 +16,7 @@ import org.jivesoftware.wildfire.user.UserNotFoundException;
import org.jivesoftware.wildfire.auth.AuthFactory; import org.jivesoftware.wildfire.auth.AuthFactory;
import org.jivesoftware.wildfire.auth.UnauthorizedException; import org.jivesoftware.wildfire.auth.UnauthorizedException;
import org.jivesoftware.wildfire.XMPPServer; import org.jivesoftware.wildfire.XMPPServer;
import org.jivesoftware.wildfire.component.InternalComponentManager;
import org.dom4j.Element; import org.dom4j.Element;
import org.xmpp.forms.DataForm; import org.xmpp.forms.DataForm;
import org.xmpp.forms.FormField; import org.xmpp.forms.FormField;
...@@ -124,4 +125,10 @@ public class AuthenticateUser extends AdHocCommand { ...@@ -124,4 +125,10 @@ public class AuthenticateUser extends AdHocCommand {
protected Action getExecuteAction(SessionData data) { protected Action getExecuteAction(SessionData data) {
return AdHocCommand.Action.complete; return AdHocCommand.Action.complete;
} }
@Override
public boolean hasPermission(JID requester) {
return super.hasPermission(requester) ||
InternalComponentManager.getInstance().getComponent(requester) != 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