mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-29 11:33:48 +01:00
2d76b058fc
Follow up management-integrations changes move groups to separated packages to avoid circle dependencies save location information in Login action
20 lines
603 B
Go
20 lines
603 B
Go
package account
|
|
|
|
type ExtraSettings struct {
|
|
// PeerApprovalEnabled enables or disables the need for peers bo be approved by an administrator
|
|
PeerApprovalEnabled bool
|
|
|
|
// IntegratedValidatorGroups list of group IDs to be used with integrated approval configurations
|
|
IntegratedValidatorGroups []string `gorm:"serializer:json"`
|
|
}
|
|
|
|
// Copy copies the ExtraSettings struct
|
|
func (e *ExtraSettings) Copy() *ExtraSettings {
|
|
var cpGroup []string
|
|
|
|
return &ExtraSettings{
|
|
PeerApprovalEnabled: e.PeerApprovalEnabled,
|
|
IntegratedValidatorGroups: append(cpGroup, e.IntegratedValidatorGroups...),
|
|
}
|
|
}
|