@Override
    public void checkUser(String inCharges, String user, String errMsg) {
        Set<String> userRoles = LoginUserUtils.getLoginUser().getRoles();
        boolean isAdmin = false;
        if (CollectionUtils.isNotEmpty(userRoles)) {
            isAdmin = userRoles.contains(UserRoleCode.INLONG_ADMIN) || userRoles.contains(UserRoleCode.TENANT_ADMIN);
        }
        boolean isInCharge = Preconditions.inSeparatedString(user, inCharges, InlongConstants.COMMA);
        Preconditions.expectTrue(isInCharge || isAdmin, errMsg);
    }
This implementation is just to intercept some error requests and reduce the pressure on the database.
<p/>
This is a memory-based implementation. There is a problem with concurrency security when there are
multiple service nodes because the data in memory cannot be shared.

@param req username login request
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/user/UserServiceImpl.java