mirror of
https://github.com/apache/archiva.git
synced 2025-03-09 02:10:00 +00:00
Adapting to redback REST changes
This commit is contained in:
parent
833651d652
commit
780886fcdc
@ -168,7 +168,7 @@ public void downloadWithRemoteRedirect()
|
|||||||
RoleManagementService roleManagementService = getRoleManagementService( authorizationHeader );
|
RoleManagementService roleManagementService = getRoleManagementService( authorizationHeader );
|
||||||
|
|
||||||
if ( !roleManagementService.templatedRoleExists( ArchivaRoleConstants.TEMPLATE_REPOSITORY_OBSERVER,
|
if ( !roleManagementService.templatedRoleExists( ArchivaRoleConstants.TEMPLATE_REPOSITORY_OBSERVER,
|
||||||
"internal" ).isExists() )
|
"internal" ) )
|
||||||
{
|
{
|
||||||
roleManagementService.createTemplatedRole( ArchivaRoleConstants.TEMPLATE_REPOSITORY_OBSERVER, "internal" );
|
roleManagementService.createTemplatedRole( ArchivaRoleConstants.TEMPLATE_REPOSITORY_OBSERVER, "internal" );
|
||||||
}
|
}
|
||||||
|
@ -131,7 +131,7 @@ public void downloadSNAPSHOT()
|
|||||||
RoleManagementService roleManagementService = getRoleManagementService( authorizationHeader );
|
RoleManagementService roleManagementService = getRoleManagementService( authorizationHeader );
|
||||||
|
|
||||||
if ( !roleManagementService.templatedRoleExists( ArchivaRoleConstants.TEMPLATE_REPOSITORY_OBSERVER,
|
if ( !roleManagementService.templatedRoleExists( ArchivaRoleConstants.TEMPLATE_REPOSITORY_OBSERVER,
|
||||||
id ).isExists() )
|
id ) )
|
||||||
{
|
{
|
||||||
roleManagementService.createTemplatedRole( ArchivaRoleConstants.TEMPLATE_REPOSITORY_OBSERVER, id );
|
roleManagementService.createTemplatedRole( ArchivaRoleConstants.TEMPLATE_REPOSITORY_OBSERVER, id );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user