public static boolean isAdmin(User userInfo) {
        return userInfo != null && ("1".equals(userInfo.getId())
                || (userInfo.getRoleIds() != null && userInfo.getRoleIds().contains("1")));
    }
isAdmin

@param userInfo userInfo
@return boolean
src/main/java/com/tuituidan/openhub/util/SecurityUtils.java