提交 557da22a 编写于 作者: K kohsuke

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
上级 ee7d3e69
......@@ -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;
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册