|
|
|
@ -18,7 +18,7 @@ class FilterService |
|
|
|
end |
|
|
|
end |
|
|
|
logs = logs.order(created_at: :desc) |
|
|
|
logs = logs.order(created_at: :desc) |
|
|
|
if user.support? |
|
|
|
if user.support? |
|
|
|
if logs.first.lettings? |
|
|
|
if logs.first.is_a?(LettingsLog) |
|
|
|
logs.all.includes(:owning_organisation, :managing_organisation) |
|
|
|
logs.all.includes(:owning_organisation, :managing_organisation) |
|
|
|
else |
|
|
|
else |
|
|
|
logs.all.includes(:owning_organisation) |
|
|
|
logs.all.includes(:owning_organisation) |
|
|
|
|