resurrecting old field

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6138 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-11-30 18:15:38 +00:00
1 parent 557da22aaf
commit 9f66db5e92
1 file changed
+7 -1
+7 -1
View File
@@ -1179,7 +1179,13 @@ public final class Hudson extends View implements ItemGroup<TopLevelItem>, Node
// keep using 'useSecurity' field as the main configuration setting
// until we get the new security implementation working
// useSecurity = null;
security = req.getParameter("use_security")!=null ? SecurityMode.LEGACY : SecurityMode.UNSECURED;
if (req.getParameter("use_security") != null) {
security = SecurityMode.LEGACY;
useSecurity = true;
} else {
security = SecurityMode.UNSECURED;
useSecurity = false;
}
{
String v = req.getParameter("slaveAgentPortType");