Changeset

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
parents 3611:d58da6bb8a77
children 3613:f617718d2221
files core/usermanager.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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;