Browse Source

logs assigned to a provider should be vivisble to them in the homepage count rather than logs created by them

pull/2408/head
Arthur Campbell 8 months ago
parent
commit
570a4dd31c
  1. 2
      app/presenters/homepage_presenter.rb

2
app/presenters/homepage_presenter.rb

@ -97,7 +97,7 @@ private
when :lettings then @user.lettings_logs
when :sales then @user.sales_logs
end
query = query.where(created_by: @user) if @user.data_provider?
query = query.where(assigned_to: @user) if @user.data_provider?
query.filter_by_year(year)
.where(status:)
.count

Loading…
Cancel
Save