class UserService {

    public boolean canUpdateOrDeleteUser(LoginUser currentUser, LoginUser newUser) throws SQLException {
        if (permissionService.isSuperManagerById(currentUser.getId())) {
            return true;
        }
        return canUpdateOrDeleteUser(currentUser.getId(), currentUser.getRole(), newUser.getId(), newUser.getRole());
    }

}