From f2ec151328a34bf9c2e20e2e6ff2695e69e91f69 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Mon, 6 Oct 2008 14:02:42 +0000 Subject: Mantis#2340. Thank you kindly, Sacha Magne for a patch that: adding default_loginLevel in USerServer.xml to set a default login level to acces to the grid. Fixing one bug in login_reset --- OpenSim/Grid/UserServer/Main.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'OpenSim/Grid/UserServer') diff --git a/OpenSim/Grid/UserServer/Main.cs b/OpenSim/Grid/UserServer/Main.cs index e24b486..787679e 100644 --- a/OpenSim/Grid/UserServer/Main.cs +++ b/OpenSim/Grid/UserServer/Main.cs @@ -124,6 +124,10 @@ namespace OpenSim.Grid.UserServer m_httpServer.AddXmlRPCHandler("login_to_simulator", m_loginService.XmlRpcLoginMethod); m_httpServer.AddHTTPHandler("login", m_loginService.ProcessHTMLLogin); + // + // Get the minimum defaultLevel to access to the grid + // + m_loginService.setloginlevel((int)Cfg.DefaultUserLevel); if (Cfg.EnableLLSDLogin) { @@ -294,10 +298,7 @@ namespace OpenSim.Grid.UserServer } break; case "login-reset": - if (cmdparams.Length == 1) - { - m_loginService.setloginlevel(0); - } + m_loginService.setloginlevel(0); break; case "login-text": if (cmdparams.Length == 1) -- cgit v1.1