提交 c2525bf9 编写于 作者: D Daniel Beck

Merge pull request #2317 from daniel-beck/JENKINS-31611

[FIX JENKINS-31611] Restrict access to plugin pages
......@@ -25,7 +25,7 @@ THE SOFTWARE.
<!-- 3rd party license acknowledgements and -->
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:s="/lib/form">
<l:layout title="${%about(it.longName)}">
<l:layout title="${%about(it.longName)}" permission="${app.ADMINISTER}">
<l:main-panel>
<h1>${%about(it.longName+' '+it.version)}</h1>
......
package hudson.PluginWrapper
import jenkins.model.Jenkins
def l = namespace(lib.LayoutTagLib)
def f = namespace(lib.FormTagLib)
l.layout {
l.layout(permission: Jenkins.ADMINISTER) {
def title = _("title", my.shortName)
l.header(title:title)
l.main_panel {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册