// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: BUSL-1.1

//go:build !consulent

package structs

import (
	"fmt"

	"github.com/hashicorp/consul/acl"
)

func validateSourceIntentionEnterpriseMeta(_, _ *acl.EnterpriseMeta) error {
	return nil
}

func (s *SourceIntention) validateSamenessGroup() error {
	if s.SamenessGroup != "" {
		return fmt.Errorf("Sameness groups are a Consul Enterprise feature.")
	}

	return nil
}
