Merge branch 'main' into refactor/permissions-manager

# Conflicts:
#	management/server/http/testing/testing_tools/channel/channel.go
#	management/server/policy.go
This commit is contained in:
pascal
2026-04-23 16:06:01 +02:00
92 changed files with 4582 additions and 639 deletions

View File

@@ -3310,7 +3310,7 @@ func (s *SqlStore) GetAccountPeersWithExpiration(ctx context.Context, lockStreng
var peers []*nbpeer.Peer
result := tx.
Where("login_expiration_enabled = ? AND user_id IS NOT NULL AND user_id != ''", true).
Where("login_expiration_enabled = ? AND peer_status_login_expired != ? AND user_id IS NOT NULL AND user_id != ''", true, true).
Find(&peers, accountIDCondition, accountID)
if err := result.Error; err != nil {
log.WithContext(ctx).Errorf("failed to get peers with expiration from the store: %s", result.Error)