Merge pull request #8828 from andrej-scinote/aj_SCI_12279

Fix appendable scope for shared inventories [SCI-12279]
This commit is contained in:
Martin Artnik 2025-08-21 14:12:27 +02:00 committed by GitHub
commit 625f270e90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,7 +52,6 @@ class Repository < RepositoryBase
scope :appendable_by_user, lambda { |user, teams = user.current_team|
active.with_granted_permissions(user, RepositoryPermissions::ROWS_CREATE, teams)
.where(type: Extends::REPOSITORY_APPENDABLE_TYPES)
.where(team: teams)
}
def self.permission_class