Merge pull request #8662 from artoscinote/ma_SCI_12128

Fix unlink_unshared_items in repository.rb [SCI-12128]
This commit is contained in:
Martin Artnik 2025-07-16 10:35:17 +02:00 committed by GitHub
commit c4ecfad54b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -191,7 +191,7 @@ class Repository < RepositoryBase
repository_rows_ids,
repository_rows_ids)
.joins(:repository)
.where.not(repositories: self)
.where.not(repository: self)
.where.not(repositories: { team: team })
.distinct