mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 08:16:39 +00:00
Integration of edr check Fix testutil.go Temporary replace management integrations Fix tests Fix test Fix go.mod Fix test Fix test Moved integration groups from integration db Add comment Rename integrated validation to approval Update managemenet-integration dependency Update go mod Update go.mod Fix lint Fix go.sum Fix test Add comment Bug fixes in API Fix approval logic Update managemenet-integration version Fix mod interface Fix test Fix test move group validation into account manager and switch validator from validating peers to syncing
20 lines
598 B
Go
20 lines
598 B
Go
package account
|
|
|
|
type ExtraSettings struct {
|
|
// PeerApprovalEnabled enables or disables the need for peers bo be approved by an administrator
|
|
PeerApprovalEnabled bool
|
|
|
|
// IntegratedApprovalGroups list of group IDs to be used with integrated approval configurations
|
|
IntegratedApprovalGroups []string `gorm:"serializer:json"`
|
|
}
|
|
|
|
// Copy copies the ExtraSettings struct
|
|
func (e *ExtraSettings) Copy() *ExtraSettings {
|
|
var cpGroup []string
|
|
|
|
return &ExtraSettings{
|
|
PeerApprovalEnabled: e.PeerApprovalEnabled,
|
|
IntegratedApprovalGroups: append(cpGroup, e.IntegratedApprovalGroups...),
|
|
}
|
|
}
|