Fix appendable scope for shared inventories [SCI-12279]

This commit is contained in:
Andrej 2025-08-21 14:10:49 +02:00
parent 4ad116b4d2
commit b83d5b4a27

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