Diff

core/usermanager.lua @ 3612:5547acd18a9f

usermanager: Don't load auth modules for components.
author Waqas Hussain <waqas20@gmail.com>
date Thu, 11 Nov 2010 08:36:31 +0500
parent 3608:ae0f83feaff4
child 3721:bd5c6c333ee7
line wrap: on
line diff
--- 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;