fix needed authz for download remote index

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1176243 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2011-09-27 07:18:07 +00:00
parent f5dc1fdb10
commit 489d8bfaf0
1 changed files with 9 additions and 6 deletions

View File

@ -19,6 +19,7 @@
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="redback" uri="http://plexus.codehaus.org/redback/taglib-1.0" %>
<html>
<head>
@ -40,12 +41,14 @@
<%@ include file="/WEB-INF/jsp/admin/include/remoteRepositoryForm.jspf" %>
<s:submit value="Update Repository"/>
</s:form>
<s:form method="post" action="editRemoteRepository!downloadRemoteIndex" namespace="/admin" validate="false">
<s:hidden name="repoid"/>
<s:checkbox name="now" label="Now" />
<s:checkbox name="fullDownload" label="Full download"/>
<s:submit value="download Remote Index"/>
</s:form>
<redback:ifAuthorized permission="archiva-run-indexer">
<s:form method="post" action="editRemoteRepository!downloadRemoteIndex" namespace="/admin" validate="false">
<s:hidden name="repoid"/>
<s:checkbox name="now" label="Now" />
<s:checkbox name="fullDownload" label="Full download"/>
<s:submit value="download Remote Index"/>
</s:form>
</redback:ifAuthorized>
<script type="text/javascript">
document.getElementById("editRemoteRepository_repository_name").focus();