mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-12 16:14:58 +08:00
Merge pull request #8732 from okriuchykhin/ok_SCI_12188
Fix listing of shared storage locations [SCI-12188]
This commit is contained in:
commit
09c5973a74
1 changed files with 0 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue