We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e1c935 commit 39eedbdCopy full SHA for 39eedbd
app/controllers/teams_controller.rb
@@ -212,10 +212,8 @@ def record_exit
212
end
213
214
def visitors
215
- visitors_params = params.permit(:full)
216
-
217
since = is_admin? ? 0 : 2.weeks.ago.to_i
218
- full = is_admin? && visitors_params[:full] == 'true'
+ full = is_admin? && params[:full] == 'true'
219
@visitors = @team.aggregate_visitors(since).reject { |visitor| visitor[:user] && @team.on_team?(visitor[:user]) }
220
@visitors = fake_visitors if @visitors.blank? && Rails.env.development?
221
@visitors = @visitors.first(75) if !is_admin? || !full
0 commit comments