提交 c472e822 编写于 作者: K Kohsuke Kawaguchi

take advantage of the context

上级 c6b4cbb6
......@@ -24,7 +24,6 @@ THE SOFTWARE.
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<f:optionalBlock name="useProjectSecurity" title="${%Enable project-based security}" checked="${instance!=null}">
<j:set var="descriptorPath" value="descriptorByName/AuthorizationMatrixProperty" />
<st:include page="/hudson/security/GlobalMatrixAuthorizationStrategy/config.jelly" />
</f:optionalBlock>
</j:jelly>
......@@ -151,7 +151,7 @@ THE SOFTWARE.
e = null; <!-- avoid memory leak -->
},
<j:if test="${empty(descriptorPath)}">
<j:set var="descriptorPath" value="${rootURL}/descriptor/${descriptor.clazz.name}"/>
<j:set var="descriptorPath" value="${rootURL}${descriptor.descriptorFullUrl}"/>
</j:if>
<!-- validates the name -->
"#${strategyid} TR.permission-row" : function(e) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册