From 6a646fe006eea66935c74b2f27ef7f2d0512723e Mon Sep 17 00:00:00 2001 From: srosse <none@none> Date: Thu, 29 Jun 2017 16:13:45 +0200 Subject: [PATCH] no-jira: load the homepage configuration only if needed --- src/main/java/org/olat/user/restapi/UserVOFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/olat/user/restapi/UserVOFactory.java b/src/main/java/org/olat/user/restapi/UserVOFactory.java index 9fb49499e22..0594a26bb7a 100644 --- a/src/main/java/org/olat/user/restapi/UserVOFactory.java +++ b/src/main/java/org/olat/user/restapi/UserVOFactory.java @@ -105,10 +105,10 @@ public class UserVOFactory { } } - HomePageConfig hpc = isAdmin ? null : HomePageConfigManagerImpl.getInstance().loadConfigFor(identity.getName()); if(allProperties) { UserManager um = UserManager.getInstance(); + HomePageConfig hpc = isAdmin ? null : HomePageConfigManagerImpl.getInstance().loadConfigFor(identity.getName()); List<UserPropertyHandler> propertyHandlers = um.getUserPropertyHandlersFor(UserWebService.PROPERTY_HANDLER_IDENTIFIER, false); for (UserPropertyHandler propertyHandler : propertyHandlers) { String propName = propertyHandler.getName(); -- GitLab