提交 0a372d09 编写于 作者: K kohsuke

avoid ajax calls that will fail, as these URLs require the read access.

This should fix the test failures.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14360 71c3de6d-444a-0410-be80-ed276b4c234a
上级 20a1e630
......@@ -70,7 +70,7 @@
</j:forEach>
</j:forEach>
<!-- schedule updates only for the full page reload -->
<j:if test="${ajax==null and !h.isAutoRefresh(request)}">
<j:if test="${ajax==null and !h.isAutoRefresh(request) and h.hasPermission(app.READ)}">
<script defer="defer">
refreshPart('executors',"${h.ifThenElse(h.hasView(it,'ajaxExecutors'),'.',rootURL)}/ajaxExecutors");
</script>
......
......@@ -49,7 +49,7 @@
</j:otherwise>
</j:choose>
<!-- schedule updates only for the full page reload -->
<j:if test="${ajax==null and !h.isAutoRefresh(request)}">
<j:if test="${ajax==null and !h.isAutoRefresh(request) and h.hasPermission(app.READ)}">
<script defer="defer">
refreshPart('buildQueue',"${h.ifThenElse(h.hasView(it,'ajaxBuildQueue'),'.',rootURL)}/ajaxBuildQueue");
</script>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册