Merge pull request #8732 from okriuchykhin/ok_SCI_12188

Fix listing of shared storage locations [SCI-12188]
This commit is contained in:
Alex Kriuchykhin 2025-07-31 15:02:39 +02:00 committed by GitHub
commit 09c5973a74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,8 +22,6 @@ module Lists
MAX(users.full_name) as created_by_full_name, MAX(users.full_name) as created_by_full_name,
CASE WHEN storage_locations.container THEN -1 ELSE COUNT(sub_locations.id) END AS sub_location_count' CASE WHEN storage_locations.container THEN -1 ELSE COUNT(sub_locations.id) END AS sub_location_count'
).group(:id) ).group(:id)
@records = @records.readable_by_user(@user, @user.current_team) unless parent_id
end end
def filter_records def filter_records