提交 f73f51d2 编写于 作者: M mindless

Fix so disabled permissions are not shown in project-specific permission matrix

(EXTENDED_READ has been exposed there since 1.325 even w/o Extended-Read plugin
 to enable that permission)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23659 71c3de6d-444a-0410-be80-ed276b4c234a
上级 e119e959
......@@ -133,7 +133,7 @@ public class AuthorizationMatrixProperty extends JobProperty<Job<?, ?>> {
}
@Extension
public static class DescriptorImpl extends JobPropertyDescriptor {
public static class DescriptorImpl extends JobPropertyDescriptor {
@Override
public JobProperty<?> newInstance(StaplerRequest req, JSONObject formData) throws FormException {
formData = formData.getJSONObject("useProjectSecurity");
......@@ -172,7 +172,7 @@ public class AuthorizationMatrixProperty extends JobProperty<Job<?, ?>> {
}
public boolean showPermission(Permission p) {
return p!=Item.CREATE;
return p.getEnabled() && p!=Item.CREATE;
}
public FormValidation doCheckName(@AncestorInPath Job project, @QueryParameter String value) throws IOException, ServletException {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册