mirror of
https://github.com/netbirdio/management-integrations.git
synced 2026-05-22 17:09:23 -07:00
check old extra settings before log
This commit is contained in:
@@ -9,7 +9,9 @@ import (
|
||||
|
||||
func ValidateExtraSettings(newExtraSettings *account.ExtraSettings, oldExtraSettings *account.ExtraSettings, peers map[string]*nbpeer.Peer, userID string, accountID string, eventStore activity.Store) error {
|
||||
if newExtraSettings != nil {
|
||||
log.Info("extra settings are only supported on the cloud version of NetBird")
|
||||
if oldExtraSettings != nil {
|
||||
log.Info("extra settings are only supported on the cloud version of NetBird")
|
||||
}
|
||||
if newExtraSettings.PeerApprovalEnabled {
|
||||
log.Info("setting peer approval to false")
|
||||
newExtraSettings.PeerApprovalEnabled = false
|
||||
|
||||
Reference in New Issue
Block a user