resurrecting the 'useSecurity' as the persistent field since the new security stuff is not ready.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6137 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-11-30 15:26:11 +00:00
1 parent ee7d3e6993
commit 557da22aaf
1 file changed
+4 -2
+4 -2
View File
@@ -126,13 +126,13 @@ public final class Hudson extends View implements ItemGroup<TopLevelItem>, Node
/**
* False to enable anyone to do anything.
* Left as a field so that we can still read old data that uses this flag.
* @deprecated as of 1.160.
* @see #security
*/
private Boolean useSecurity;
/**
* Hudson's security mode.
* To supercede {@link #useSecurity} eventually.
* @since 1.160
*/
private SecurityMode security = SecurityMode.UNSECURED;
@@ -1176,7 +1176,9 @@ public final class Hudson extends View implements ItemGroup<TopLevelItem>, Node
req.setCharacterEncoding("UTF-8");
useSecurity = null;
// 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;
{