diff --git a/dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata/objectbundle/hooks/UserRoleBundleHook.java b/dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata/objectbundle/hooks/UserRoleBundleHook.java index 8186f04905a..36c119e3647 100644 --- a/dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata/objectbundle/hooks/UserRoleBundleHook.java +++ b/dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/metadata/objectbundle/hooks/UserRoleBundleHook.java @@ -32,10 +32,9 @@ import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.hisp.dhis.dxf2.metadata.objectbundle.ObjectBundle; -import org.hisp.dhis.user.CurrentUserService; -import org.hisp.dhis.user.DefaultUserService; import org.hisp.dhis.user.User; import org.hisp.dhis.user.UserRole; +import org.hisp.dhis.user.UserService; import org.springframework.stereotype.Component; /** @@ -48,8 +47,7 @@ public class UserRoleBundleHook extends AbstractObjectBundleHook { public static final String INVALIDATE_SESSION_KEY = "shouldInvalidateUserSessions"; - private final CurrentUserService currentUserService; - private final DefaultUserService userService; + private final UserService userService; @Override public void preUpdate(UserRole update, UserRole existing, ObjectBundle bundle) {