提交 06c8dcea 编写于 作者: D Daniel Beck

[JENKINS-20739] Filter descriptors before adding them to hetero-list.

This allows implementations of DescriptorVisibilityFilter to hide items
with descriptors from users to prevent them from being added via the UI.

This is already implemented in /lib/hudson/newFromList/form.jelly, but
nowhere else.
上级 d990ed58
......@@ -126,7 +126,8 @@ THE SOFTWARE.
<div class="prototypes to-be-removed">
<!-- render one prototype for each type -->
<j:set var="instance" value="${null}" />
<j:forEach var="descriptor" items="${attrs.descriptors}" varStatus="loop">
<j:set var="descriptors" value="${h.filterDescriptors(it,attrs.descriptors)}" />
<j:forEach var="descriptor" items="${descriptors}" varStatus="loop">
<div name="${attrs.name}" title="${descriptor.displayName}" tooltip="${descriptor.tooltip}" descriptorId="${descriptor.id}">
<j:set var="capture" value="${attrs.capture?:''}" />
<local:body deleteCaption="${attrs.deleteCaption}">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册