mirror of
https://github.com/apache/archiva.git
synced 2025-02-28 13:39:13 +00:00
PR: MRM-260
Updated managedRepositories.jsp. Added "archiva-edit-configuration" operation specific for archiva system admin only to disallow updating of the indexer for all users with repository manager roles. git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@489289 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
885232dcc7
commit
af8a841830
@ -58,4 +58,6 @@ public class ArchivaRoleConstants
|
||||
public static final String OPERATION_EDIT_REPOSITORY = "archiva-edit-repository";
|
||||
|
||||
public static final String OPERATION_REPOSITORY_UPLOAD = "archiva-upload-repository";
|
||||
|
||||
public static final String OPERATION_EDIT_CONFIGURATION = "archiva-edit-configuration";
|
||||
}
|
||||
|
@ -38,6 +38,7 @@ public List getOperations()
|
||||
{
|
||||
List operations = new ArrayList();
|
||||
operations.add( ArchivaRoleConstants.OPERATION_MANAGE_CONFIGURATION );
|
||||
operations.add( ArchivaRoleConstants.OPERATION_EDIT_CONFIGURATION );
|
||||
operations.add( ArchivaRoleConstants.OPERATION_MANAGE_USERS );
|
||||
operations.add( ArchivaRoleConstants.OPERATION_RUN_INDEXER );
|
||||
operations.add( ArchivaRoleConstants.OPERATION_REGENERATE_INDEX );
|
||||
|
@ -32,7 +32,9 @@
|
||||
<div>
|
||||
<div style="float: right">
|
||||
<%-- TODO replace with icons --%>
|
||||
<pss:ifAuthorized permission="archiva-edit-configuration" resource="*">
|
||||
<a href="<ww:url action="configure" />">Edit Configuration</a>
|
||||
</pss:ifAuthorized>
|
||||
</div>
|
||||
<h2>Configuration</h2>
|
||||
</div>
|
||||
|
@ -48,6 +48,7 @@
|
||||
<strong>There are no managed repositories configured yet.</strong>
|
||||
</c:if>
|
||||
<c:forEach items="${repositories}" var="repository" varStatus="i">
|
||||
<pss:ifAnyAuthorized permissions="archiva-edit-repository, archiva-delete-repository" resource="${repository.id}">
|
||||
<div>
|
||||
<div style="float: right">
|
||||
<ww:url id="editRepositoryUrl" action="editRepository" method="input">
|
||||
@ -57,8 +58,8 @@
|
||||
<ww:param name="repoId" value="%{'${repository.id}'}" />
|
||||
</ww:url>
|
||||
<%-- TODO replace with icons --%>
|
||||
<pss:ifAuthorized permission="archiva-edit-repository" resource="${repository.id}"><ww:a href="%{editRepositoryUrl}">Edit Repository</ww:a></pss:ifAuthorized>
|
||||
<pss:ifAuthorized permission="archiva-delete-repository" resource="${repository.id}"><ww:a href="%{deleteRepositoryUrl}">Delete Repository</ww:a></pss:ifAuthorized>
|
||||
<ww:a href="%{editRepositoryUrl}">Edit Repository</ww:a>
|
||||
<ww:a href="%{deleteRepositoryUrl}">Delete Repository</ww:a>
|
||||
</div>
|
||||
<h3>${repository.name}</h3>
|
||||
<table class="infoTable">
|
||||
@ -132,6 +133,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</pss:ifAnyAuthorized>
|
||||
</c:forEach>
|
||||
</div>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user