mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-04 22:59:51 +01:00
Offer update info link only, when feed url is specified
This commit is contained in:
@@ -102,7 +102,9 @@ public class IndexDtoGenerator extends HalAppenderMapper {
|
||||
}
|
||||
if (ConfigurationPermissions.list().isPermitted()) {
|
||||
builder.single(link("config", resourceLinks.config().self()));
|
||||
builder.single(link("updateInfo", resourceLinks.adminInfo().updateInfo()));
|
||||
if (!Strings.isNullOrEmpty(configuration.getReleaseFeedUrl())) {
|
||||
builder.single(link("updateInfo", resourceLinks.adminInfo().updateInfo()));
|
||||
}
|
||||
}
|
||||
builder.single(link("repositories", resourceLinks.repositoryCollection().self()));
|
||||
builder.single(link("namespaces", resourceLinks.namespaceCollection().self()));
|
||||
|
||||
Reference in New Issue
Block a user