mirror of
https://github.com/status-im/consul.git
synced 2025-02-08 11:54:12 +00:00
16 lines
314 B
Go
16 lines
314 B
Go
|
// Copyright (c) HashiCorp, Inc.
|
||
|
// SPDX-License-Identifier: MPL-2.0
|
||
|
|
||
|
package authv2beta1
|
||
|
|
||
|
func (ctp *TrafficPermissions) HasReferencedSamenessGroups() bool {
|
||
|
for _, dp := range ctp.Permissions {
|
||
|
for _, source := range dp.Sources {
|
||
|
if source.SamenessGroup != "" {
|
||
|
return true
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
return false
|
||
|
}
|