usermanager: Don't load auth modules for components.

Thu, 11 Nov 2010 08:36:31 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Thu, 11 Nov 2010 08:36:31 +0500
changeset 3612
5547acd18a9f
parent 3611
d58da6bb8a77
child 3613
f617718d2221

usermanager: Don't load auth modules for components.

core/usermanager.lua file | annotate | diff | comparison | revisions
--- a/core/usermanager.lua	Thu Nov 11 00:55:33 2010 +0100
+++ b/core/usermanager.lua	Thu Nov 11 08:36:31 2010 +0500
@@ -34,6 +34,8 @@
 
 function initialize_host(host)
 	local host_session = hosts[host];
+	if host_session.type ~= "local" then return; end
+	
 	host_session.events.add_handler("item-added/auth-provider", function (event)
 		local provider = event.item;
 		local auth_provider = config.get(host, "core", "authentication") or default_provider;

mercurial