Skip to content

Commit

Permalink
fix: don't use getAllPrincipals
Browse files Browse the repository at this point in the history
Signed-off-by: Morten Svanaes <[email protected]>
  • Loading branch information
netroms committed Jan 17, 2025
1 parent 8ef9716 commit 2c291de
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand All @@ -48,8 +47,7 @@ public class UserRoleBundleHook extends AbstractObjectBundleHook<UserRole> {

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) {
Expand Down

0 comments on commit 2c291de

Please sign in to comment.