Commits

Sebastian Sdorra committed 97d8a04

improve preparation of repositories

Comments (0)

Files changed (1)

scm-webapp/src/main/java/sonia/scm/api/rest/resources/RepositoryResource.java

   {
     for (Repository repository : repositories)
     {
-      RepositoryUtil.appendUrl(configuration, repositoryManager, repository);
-      prepareRepository(repository);
+      prepareForReturn(repository);
     }
 
     return repositories;
     }
     else
     {
+      if (logger.isTraceEnabled())
+      {
+        logger.trace("remove properties and permissions from repository, "
+          + "because the user is not privileged");
+      }
+
       repository.setProperties(null);
       repository.setPermissions(null);
     }