]> source.dussan.org Git - archiva.git/commitdiff
fix needed authz for download remote index
authorOlivier Lamy <olamy@apache.org>
Tue, 27 Sep 2011 07:18:07 +0000 (07:18 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 27 Sep 2011 07:18:07 +0000 (07:18 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1176243 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/editRemoteRepository.jsp

index 7591f606ad5e1241c25956d81fc9594344f5c28a..6ec8220ba178bd71014a106f4049866a37a3a1ce 100644 (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>
     <%@ 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();